From bbe73c77c1cde3e05097fba9593d485fb38e7f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 13 Jan 2017 16:20:20 +0100 Subject: [PATCH] pythonPackages.dulwich: 0.14.0 -> 0.14.1 --- pkgs/development/python-modules/dulwich.nix | 27 +++++++++++++++++++++ pkgs/top-level/python-packages.nix | 26 ++------------------ 2 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 pkgs/development/python-modules/dulwich.nix diff --git a/pkgs/development/python-modules/dulwich.nix b/pkgs/development/python-modules/dulwich.nix new file mode 100644 index 000000000000..d482aa146279 --- /dev/null +++ b/pkgs/development/python-modules/dulwich.nix @@ -0,0 +1,27 @@ +{ stdenv, buildPythonPackage, fetchurl +, gevent, geventhttpclient, mock, fastimport +, git, glibcLocales }: + +buildPythonPackage rec { + name = "dulwich-${version}"; + version = "0.14.1"; + + src = fetchurl { + url = "mirror://pypi/d/dulwich/${name}.tar.gz"; + sha256 = "14xsyxha6qyxxyf0ma3zv1sy31iy22vzwayk519n7a1gwzk4j7vw"; + }; + + LC_ALL = "en_US.UTF-8"; + + # Only test dependencies + buildInputs = [ git glibcLocales gevent geventhttpclient mock fastimport ]; + + doCheck = !stdenv.isDarwin; + + meta = with stdenv.lib; { + description = "Simple Python implementation of the Git file formats and protocols"; + homepage = http://samba.org/~jelmer/dulwich/; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ koral ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4fab1ec75837..1d5ccf6c170f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10758,32 +10758,10 @@ in { }; }; - - dulwich = buildPythonPackage rec { - name = "dulwich-${version}"; - version = "0.12.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/dulwich/${name}.tar.gz"; - sha256 = "1ihc1bdgxj7i068mhhmkzar56r2vdcj68w0dnsm7aqgcgvrp144g"; - }; - - LC_ALL = "en_US.UTF-8"; - - # Only test dependencies - buildInputs = with self; [ pkgs.git gevent geventhttpclient pkgs.glibcLocales mock fastimport ]; - - doCheck = !stdenv.isDarwin; - - meta = { - description = "Simple Python implementation of the Git file formats and protocols"; - homepage = http://samba.org/~jelmer/dulwich/; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ koral ]; - }; + dulwich = callPackage ../development/python-modules/dulwich.nix { + inherit (pkgs) git glibcLocales; }; - hg-git = buildPythonPackage rec { name = "hg-git-${version}"; version = "0.8.5";