Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 31 lines 567 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, nose 5}: 6 7buildPythonPackage rec { 8 version = "0.1.2"; 9 pname = "forbiddenfruit"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "09ee1959fa34936c15417defa28bfd09cf88ad54c15454bc863d465ed42b8922"; 14 }; 15 16 checkInputs = [ nose ]; 17 18 checkPhase = '' 19 nosetests 20 ''; 21 22 # tests directory missing in PyPI tarball 23 doCheck = false; 24 25 meta = with stdenv.lib; { 26 description = "Patch python built-in objects"; 27 homepage = https://pypi.python.org/pypi/forbiddenfruit; 28 license = licenses.mit; 29 }; 30 31}