pythonPackages.pex: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 10:37:57 -04:00 committed by Frederik Rietdijk
parent 4e29f17549
commit d40edcb911
2 changed files with 30 additions and 24 deletions

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pex";
version = "1.2.7";
src = fetchPypi {
inherit pname version;
sha256 = "1m0gx9182w1dybkyjwwjyd6i87x2dzv252ks2fj8yn6avlcp5z4q";
};
prePatch = ''
substituteInPlace setup.py --replace 'SETUPTOOLS_REQUIREMENT,' '"setuptools"'
'';
# A few more dependencies I don't want to handle right now...
doCheck = false;
meta = with stdenv.lib; {
description = "A library and tool for generating .pex (Python EXecutable) files";
homepage = "https://github.com/pantsbuild/pex";
license = licenses.asl20;
maintainers = with maintainers; [ copumpkin ];
};
}

View File

@ -2025,30 +2025,7 @@ in {
peppercorn = callPackage ../development/python-modules/peppercorn { };
pex = buildPythonPackage rec {
name = "pex-${version}";
version = "1.2.7";
src = self.fetchPypi {
pname = "pex";
sha256 = "1m0gx9182w1dybkyjwwjyd6i87x2dzv252ks2fj8yn6avlcp5z4q";
inherit version;
};
prePatch = ''
substituteInPlace setup.py --replace 'SETUPTOOLS_REQUIREMENT,' '"setuptools"'
'';
# A few more dependencies I don't want to handle right now...
doCheck = false;
meta = {
description = "A library and tool for generating .pex (Python EXecutable) files";
homepage = "https://github.com/pantsbuild/pex";
license = licenses.asl20;
maintainers = with maintainers; [ copumpkin ];
};
};
pex = callPackage ../development/python-modules/pex { };
phe = callPackage ../development/python-modules/phe { };