2018-10-16 21:06:47 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-12-02 21:34:27 +00:00
|
|
|
, nose
|
2018-10-16 21:06:47 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-04-23 09:47:39 +01:00
|
|
|
version = "0.1.3";
|
2018-10-16 21:06:47 +01:00
|
|
|
pname = "forbiddenfruit";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-23 09:47:39 +01:00
|
|
|
sha256 = "1188a07cc24a9bd2c529dad06490b80a6fc88cde968af4d7861da81686b2cc8c";
|
2018-10-16 21:06:47 +01:00
|
|
|
};
|
|
|
|
|
2018-12-02 21:34:27 +00:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-04-23 09:47:39 +01:00
|
|
|
find ./build -name '*.so' -exec mv {} tests/unit \;
|
2018-12-02 21:34:27 +00:00
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2018-10-16 21:06:47 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Patch python built-in objects";
|
|
|
|
homepage = https://pypi.python.org/pypi/forbiddenfruit;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|