My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/forbiddenfruit/default.nix

36 lines
735 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
}:
buildPythonPackage rec {
version = "0.1.4";
pname = "forbiddenfruit";
src = fetchFromGitHub {
owner = "clarete";
repo = "forbiddenfruit";
rev = version;
sha256 = "16chhrxbbmg6lfbzm532fq0v00z8qihcsj0kg2b5jlgnb6qijwn8";
};
checkInputs = [ nose ];
preBuild = ''
export FFRUIT_EXTENSION="true";
'';
# https://github.com/clarete/forbiddenfruit/pull/47 required to switch to pytest
checkPhase = ''
find ./build -name '*.so' -exec mv {} tests/unit \;
nosetests
'';
meta = with lib; {
description = "Patch python built-in objects";
homepage = "https://github.com/clarete/forbiddenfruit";
license = licenses.mit;
};
}