uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
58
pkgs/development/python-modules/green/default.nix
Normal file
58
pkgs/development/python-modules/green/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, fetchPypi
|
||||
, django
|
||||
, colorama
|
||||
, coverage
|
||||
, unidecode
|
||||
, lxml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "green";
|
||||
version = "3.4.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5dda2d2a277012227011f8f21523d70a550ebe5d47cc890fa16b9fcd9a91da53";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./tests.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace green/test/test_integration.py \
|
||||
--subst-var-by green "$out/bin/green"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
colorama
|
||||
coverage
|
||||
unidecode
|
||||
lxml
|
||||
];
|
||||
|
||||
# let green run it's own test suite
|
||||
checkPhase = ''
|
||||
$out/bin/green -tvvv \
|
||||
green.test.test_version \
|
||||
green.test.test_cmdline \
|
||||
green.test.test_command
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"green"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python test runner";
|
||||
homepage = "https://github.com/CleanCut/green";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/python-modules/green/tests.patch
Normal file
22
pkgs/development/python-modules/green/tests.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
diff --git a/green/test/test_integration.py b/green/test/test_integration.py
|
||||
index 0cf8cbb..40d9f6b 100644
|
||||
--- a/green/test/test_integration.py
|
||||
+++ b/green/test/test_integration.py
|
||||
@@ -41,9 +41,7 @@ class TestFinalizer(unittest.TestCase):
|
||||
)
|
||||
fh.close()
|
||||
args = [
|
||||
- sys.executable,
|
||||
- "-m",
|
||||
- "green.cmdline",
|
||||
+ "@green@",
|
||||
"--finalizer=test_finalizer0.msg",
|
||||
"--maxtasksperchild=1",
|
||||
]
|
||||
@@ -58,6 +56,5 @@ class TestFinalizer(unittest.TestCase):
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
env=env,
|
||||
- timeout=10,
|
||||
).stdout.decode("utf-8")
|
||||
self.assertIn("finalizer worked", output)
|
||||
Loading…
Add table
Add a link
Reference in a new issue