Merge pull request #117400 from rmcgibbo/forbiddenfruit

python3Packages.forbiddenfruit: unbreak
This commit is contained in:
Sandro 2021-03-24 18:58:39 +01:00 committed by GitHub
commit 6fac3c1bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}; };