pythonPackages.pex: refactor move to python-modules

wip/yesman
Chris Ostrouchov 6 years ago committed by Frederik Rietdijk
parent 4e29f17549
commit d40edcb911
  1. 29
      pkgs/development/python-modules/pex/default.nix
  2. 25
      pkgs/top-level/python-packages.nix

@ -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 ];
};
}

@ -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 { };

Loading…
Cancel
Save