From 37b4051b05f18aa3eb91a03b26bddb3ab59e3c91 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Tue, 3 Apr 2018 13:28:05 +0200 Subject: [PATCH] pythonPackages.heapdict: Move to own file --- .../python-modules/heapdict/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +--------------- 2 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/heapdict/default.nix diff --git a/pkgs/development/python-modules/heapdict/default.nix b/pkgs/development/python-modules/heapdict/default.nix new file mode 100644 index 000000000000..34c01091ddf2 --- /dev/null +++ b/pkgs/development/python-modules/heapdict/default.nix @@ -0,0 +1,20 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k }: + +buildPythonPackage rec { + pname = "HeapDict"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0nhvxyjq6fp6zd7jzmk5x4fg6xhakqx9lhkp5yadzkqn0rlf7ja0"; + }; + + doCheck = !isPy3k; + + meta = with stdenv.lib; { + description = "a heap with decrease-key and increase-key operations."; + homepage = http://stutzbachenterprises.com; + license = licenses.bsd3; + maintainers = with maintainers; [ teh ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 20e61ca87203..02b90ec0ba5d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2005,22 +2005,7 @@ in { datrie = callPackage ../development/python-modules/datrie { }; - heapdict = buildPythonPackage rec { - name = "HeapDict-${version}"; - version = "1.0.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/H/HeapDict/${name}.tar.gz"; - sha256 = "0nhvxyjq6fp6zd7jzmk5x4fg6xhakqx9lhkp5yadzkqn0rlf7ja0"; - }; - doCheck = !isPy3k; - meta = { - description = "a heap with decrease-key and increase-key operations."; - homepage = http://stutzbachenterprises.com; - license = licenses.bsd3; - maintainers = with maintainers; [ teh ]; - }; - }; + heapdict = callPackage ../development/python-modules/heapdict { }; zict = buildPythonPackage rec {