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; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue