pythonPackages.nixpkgs: refactor move to python-modules
This commit is contained in:
parent
5f03c01b35
commit
a38edd38b2
29
pkgs/development/python-modules/nixpkgs/default.nix
Normal file
29
pkgs/development/python-modules/nixpkgs/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -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 { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user