pythonPackages.pip2nix: 0.3.0 -> 0.7.0 fix broken
This commit is contained in:
parent
8a27bc48b2
commit
761c33f347
36
pkgs/development/python-modules/pip2nix/default.nix
Normal file
36
pkgs/development/python-modules/pip2nix/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, click
|
||||||
|
, configobj
|
||||||
|
, contexter
|
||||||
|
, jinja2
|
||||||
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pip2nix";
|
||||||
|
version = "0.7.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "ec9a71e09ac7f43cc7b6c9d386384eb7b5c331bf6ea0e72ca559d87979397a95";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ click configobj contexter jinja2 pytest ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "s/'pip>=8,<10'/'pip'/" setup.py
|
||||||
|
sed -i "s/pip<10,>=8/pip/" ${pname}.egg-info/requires.txt
|
||||||
|
'';
|
||||||
|
|
||||||
|
# tests not included with pypi release
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Generate Nix expressions for Python packages";
|
||||||
|
homepage = https://github.com/johbo/pip2nix;
|
||||||
|
license = licenses.gpl3;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3792,19 +3792,7 @@ in {
|
|||||||
|
|
||||||
pid = callPackage ../development/python-modules/pid { };
|
pid = callPackage ../development/python-modules/pid { };
|
||||||
|
|
||||||
pip2nix = buildPythonPackage rec {
|
pip2nix = callPackage ../development/python-modules/pip2nix { };
|
||||||
name = "pip2nix-${version}";
|
|
||||||
version = "0.3.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/pip2nix/${name}.tar.gz";
|
|
||||||
sha256 = "1s76i8r4khq8y5r6g4218jg2c6qldmw5xhzymxad51ii8hafpwq6";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ click configobj contexter jinja2 pytest ];
|
|
||||||
|
|
||||||
meta.broken = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
pychef = buildPythonPackage rec {
|
pychef = buildPythonPackage rec {
|
||||||
name = "PyChef-${version}";
|
name = "PyChef-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user