diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2018-05-12 10:52:04 -0400 |
---|---|---|
committer | Benjamin Hipple <bhipple@protonmail.com> | 2018-05-13 11:33:42 -0400 |
commit | 5efce7c43d269c7e95a17c289ce6ca146341cfcf (patch) | |
tree | 96a06c0cecd652698616960856deb50a85067ca6 /pkgs | |
parent | 318ce72a050a32ba2d0f5ce1192ae7c039e9c323 (diff) | |
download | nixlib-5efce7c43d269c7e95a17c289ce6ca146341cfcf.tar nixlib-5efce7c43d269c7e95a17c289ce6ca146341cfcf.tar.gz nixlib-5efce7c43d269c7e95a17c289ce6ca146341cfcf.tar.bz2 nixlib-5efce7c43d269c7e95a17c289ce6ca146341cfcf.tar.lz nixlib-5efce7c43d269c7e95a17c289ce6ca146341cfcf.tar.xz nixlib-5efce7c43d269c7e95a17c289ce6ca146341cfcf.tar.zst nixlib-5efce7c43d269c7e95a17c289ce6ca146341cfcf.zip |
GitPython: 2.0.8 -> 2.1.9
Also moves GitPython into the newer python module folder structure.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/GitPython/default.nix | 24 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 25 |
2 files changed, 25 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/GitPython/default.nix b/pkgs/development/python-modules/GitPython/default.nix new file mode 100644 index 000000000000..c2f3706923a3 --- /dev/null +++ b/pkgs/development/python-modules/GitPython/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchPypi, gitdb2, mock, nose, ddt }: + +buildPythonPackage rec { + version = "2.1.9"; + pname = "GitPython"; + + src = fetchPypi { + inherit pname version; + sha256 = "0a9in1jfv9ssxhckl6sasw45bhm762y2r5ikgb2pk2g8yqdc6z64"; + }; + + checkInputs = [ mock nose ddt ]; + propagatedBuildInputs = [ gitdb2 ]; + + # Tests require a git repo + doCheck = false; + + meta = { + description = "Python Git Library"; + maintainers = [ ]; + homepage = https://github.com/gitpython-developers/GitPython; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f20b6d2f2473..c3435520877e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2824,30 +2824,7 @@ in { gitdb2 = callPackage ../development/python-modules/gitdb2 { }; - GitPython = buildPythonPackage rec { - version = "2.0.8"; - name = "GitPython-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/G/GitPython/GitPython-${version}.tar.gz"; - sha256 = "7c03d1130f903aafba6ae5b89ccf8eb433a995cd3120cbb781370e53fc4eb222"; - }; - - buildInputs = with self; [ mock nose ]; - propagatedBuildInputs = with self; [ gitdb ]; - - # All tests error with - # InvalidGitRepositoryError: /tmp/nix-build-python2.7-GitPython-1.0.1.drv-0/GitPython-1.0.1 - # Maybe due to being in a chroot? - doCheck = false; - - meta = { - description = "Python Git Library"; - maintainers = with maintainers; [ ]; - homepage = https://github.com/gitpython-developers/GitPython; - license = licenses.bsd3; - }; - }; + GitPython = callPackage ../development/python-modules/GitPython { }; git-annex-adapter = callPackage ../development/python-modules/git-annex-adapter { inherit (pkgs.gitAndTools) git-annex; |