From f4fb1682bf0c3d5b0cd6c8a0f724dd9d63622617 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 25 Nov 2015 10:06:08 +0100 Subject: [PATCH] python gitdb: remove async input async is not a requirement anymore of gitdb. With this change, it becomes possible to use GitPython with Python 3. --- pkgs/top-level/python-packages.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8a64723bd1d..cfbe1f52bce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4241,15 +4241,28 @@ let gitdb = buildPythonPackage rec { name = "gitdb-0.6.4"; - meta.maintainers = with maintainers; [ mornfall ]; - doCheck = false; src = pkgs.fetchurl { url = "https://pypi.python.org/packages/source/g/gitdb/${name}.tar.gz"; sha256 = "0n4n2c7rxph9vs2l6xlafyda5x1mdr8xy16r9s3jwnh3pqkvrsx3"; }; - propagatedBuildInputs = with self; [ smmap async ]; + buildInputs = with self; [ nose ]; + propagatedBuildInputs = with self; [ smmap ]; + + checkPhase = '' + nosetests + ''; + + doCheck = false; # Bunch of tests fail because they need an actual git repo + + meta = { + description = "Git Object Database"; + maintainers = with maintainers; [ mornfall ]; + homepage = https://github.com/gitpython-developers/gitdb; + license = licenses.bsd3; + }; + }; GitPython = buildPythonPackage rec {