depot/third_party/nixpkgs/pkgs/development/python-modules/forbiddenfruit/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

29 lines
551 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, nose
}:
buildPythonPackage rec {
version = "0.1.4";
pname = "forbiddenfruit";
src = fetchPypi {
inherit pname version;
sha256 = "e3f7e66561a29ae129aac139a85d610dbf3dd896128187ed5454b6421f624253";
};
checkInputs = [ nose ];
checkPhase = ''
find ./build -name '*.so' -exec mv {} tests/unit \;
nosetests
'';
meta = with lib; {
description = "Patch python built-in objects";
homepage = "https://pypi.python.org/pypi/forbiddenfruit";
license = licenses.mit;
};
}