Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 741 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, click 5, configobj 6, contexter 7, jinja2 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "pip2nix"; 13 version = "0.7.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "ec9a71e09ac7f43cc7b6c9d386384eb7b5c331bf6ea0e72ca559d87979397a95"; 18 }; 19 20 propagatedBuildInputs = [ click configobj contexter jinja2 pytest ]; 21 22 postPatch = '' 23 sed -i "s/'pip>=8,<10'/'pip'/" setup.py 24 sed -i "s/pip<10,>=8/pip/" ${pname}.egg-info/requires.txt 25 ''; 26 27 # tests not included with pypi release 28 doCheck = false; 29 30 meta = with stdenv.lib; { 31 description = "Generate Nix expressions for Python packages"; 32 homepage = https://github.com/johbo/pip2nix; 33 license = licenses.gpl3; 34 }; 35 36}