python3Packages.forbiddenfruit: unbreak
This commit is contained in:
parent
db21819e91
commit
af52343ae9
1 changed files with 12 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, nose
|
, nose
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -8,13 +8,20 @@ buildPythonPackage rec {
|
||||||
version = "0.1.4";
|
version = "0.1.4";
|
||||||
pname = "forbiddenfruit";
|
pname = "forbiddenfruit";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "clarete";
|
||||||
sha256 = "e3f7e66561a29ae129aac139a85d610dbf3dd896128187ed5454b6421f624253";
|
repo = "forbiddenfruit";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "16chhrxbbmg6lfbzm532fq0v00z8qihcsj0kg2b5jlgnb6qijwn8";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export FFRUIT_EXTENSION="true";
|
||||||
|
'';
|
||||||
|
|
||||||
|
# https://github.com/clarete/forbiddenfruit/pull/47 required to switch to pytest
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
find ./build -name '*.so' -exec mv {} tests/unit \;
|
find ./build -name '*.so' -exec mv {} tests/unit \;
|
||||||
nosetests
|
nosetests
|
||||||
|
@ -22,7 +29,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Patch python built-in objects";
|
description = "Patch python built-in objects";
|
||||||
homepage = "https://pypi.python.org/pypi/forbiddenfruit";
|
homepage = "https://github.com/clarete/forbiddenfruit";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue