add python2nix

This commit is contained in:
Domen Kožar 2014-09-14 23:12:22 +02:00
parent 69c95e3fdf
commit 9daaa16341
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, fetchFromGitHub, pythonPackages }:
pythonPackages.buildPythonPackage rec {
name = "python2nix-dev";
# TODO: change to upstream once https://github.com/proger/python2nix/pull/3 is merged
src = fetchFromGitHub {
owner = "iElectric";
repo = "python2nix";
rev = "734de5f680425c6298eff46481e5e717d6e141a9";
sha256 = "09qpzml38rplbr7vhplhzy3iy5n9fd3ba5b9r9cp6d08sk5xidqf";
};
propagatedBuildInputs = with pythonPackages; [ requests pip setuptools ];
meta = with stdenv.lib; {
maintainers = [ maintainers.iElectric ];
platforms = platforms.all;
};
}

View File

@ -3778,6 +3778,8 @@ let
inherit (python27Packages) recursivePthLoader;
};
python2nix = callPackage ../tools/package-management/python2nix { };
pythonDocs = recurseIntoAttrs (import ../development/interpreters/python/docs {
inherit stdenv fetchurl lib;
});