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