pythonPackages.nixpkgs: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 01:02:39 -04:00 committed by Frederik Rietdijk
parent 5f03c01b35
commit a38edd38b2
2 changed files with 30 additions and 17 deletions

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pbr
, pythonix
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "nixpkgs";
version = "0.2.2";
disabled = ! pythonAtLeast "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0gsrd99kkv99jsrh3hckz7ns1zwndi9vvh4465v4gnpz723dd6fj";
};
buildInputs = [ pbr ];
propagatedBuildInputs = [ pythonix ];
meta = with stdenv.lib; {
description = "Allows to `from nixpkgs import` stuff in interactive Python sessions";
homepage = http://github.com/t184256/nixpkgs-python-importer;
license = licenses.mit;
maintainers = with maintainers; [ t184256 ];
};
}

View File

@ -2973,23 +2973,7 @@ in {
inherit (pkgs) which; inherit (pkgs) which;
}; };
nixpkgs = buildPythonPackage rec { nixpkgs = callPackage ../development/python-modules/nixpkgs { };
disabled = ! pythonAtLeast "3.5";
pname = "nixpkgs";
version = "0.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "0gsrd99kkv99jsrh3hckz7ns1zwndi9vvh4465v4gnpz723dd6fj";
};
buildInputs = with self; [ pbr ];
propagatedBuildInputs = with self; [ pythonix ];
meta = {
description = "Allows to `from nixpkgs import` stuff in interactive Python sessions";
homepage = http://github.com/t184256/nixpkgs-python-importer;
license = licenses.mit;
maintainers = with maintainers; [ t184256 ];
};
};
nodeenv = callPackage ../development/python-modules/nodeenv { }; nodeenv = callPackage ../development/python-modules/nodeenv { };