Merge pull request #62667 from vanschelven/fix-python-sh
python: sh: fix (patch a test to be able to install again)
This commit is contained in:
commit
d3c9e5e16d
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, python, coverage, lsof, glibcLocales }:
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, python, coverage, lsof, glibcLocales }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sh";
|
pname = "sh";
|
||||||
@ -9,9 +9,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm";
|
sha256 = "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Disable tests that fail on Darwin
|
patches = [
|
||||||
# Some of the failures are due to Nix using GNU coreutils
|
# Disable tests that fail on Darwin
|
||||||
patches = [ ./disable-broken-tests-darwin.patch ];
|
# Some of the failures are due to Nix using GNU coreutils
|
||||||
|
./disable-broken-tests-darwin.patch
|
||||||
|
# Fix tests for Python 3.7. See: https://github.com/amoffat/sh/pull/468
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/amoffat/sh/commit/b6202f75706473f02084d819e0765056afa43664.patch";
|
||||||
|
sha256 = "1kzxyxcc88zhgn2kmfg9yrbs4n405b2jq7qykb453l52hy10vi94";
|
||||||
|
excludes = [ ".travis.yml" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's#/usr/bin/env python#${python.interpreter}#' test.py
|
sed -i 's#/usr/bin/env python#${python.interpreter}#' test.py
|
||||||
|
Loading…
Reference in New Issue
Block a user