Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, nose 5}: 6 7buildPythonPackage rec { 8 version = "0.1.3"; 9 pname = "forbiddenfruit"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "1188a07cc24a9bd2c529dad06490b80a6fc88cde968af4d7861da81686b2cc8c"; 14 }; 15 16 checkInputs = [ nose ]; 17 18 checkPhase = '' 19 find ./build -name '*.so' -exec mv {} tests/unit \; 20 nosetests 21 ''; 22 23 meta = with stdenv.lib; { 24 description = "Patch python built-in objects"; 25 homepage = "https://pypi.python.org/pypi/forbiddenfruit"; 26 license = licenses.mit; 27 }; 28 29}