From f73b73d6d699b86e84bc72168b1b8e2eb86e1e69 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Tue, 3 Apr 2018 13:23:05 +0200 Subject: [PATCH] pythonPackages.datrie: Move to own file --- .../python-modules/datrie/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +--------------- 2 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/datrie/default.nix diff --git a/pkgs/development/python-modules/datrie/default.nix b/pkgs/development/python-modules/datrie/default.nix new file mode 100644 index 00000000000..f9ac491dc81 --- /dev/null +++ b/pkgs/development/python-modules/datrie/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi +, pytest, pytestrunner, hypothesis}: + +buildPythonPackage rec { + pname = "datrie"; + version = "0.7.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "08r0if7dry2q7p34gf7ffyrlnf4bdvnprxgydlfxgfnvq8f3f4bs"; + }; + + buildInputs = [ pytest pytestrunner hypothesis ]; + + meta = with stdenv.lib; { + description = "Super-fast, efficiently stored Trie for Python"; + homepage = "https://github.com/kmike/datrie"; + license = licenses.lgpl2; + maintainers = with maintainers; [ lewo ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1923fe8a9c1..20e61ca8720 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2003,23 +2003,7 @@ in { dask = callPackage ../development/python-modules/dask { }; - datrie = buildPythonPackage rec { - name = "datrie"; - version = "0.7.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/datrie/datrie-${version}.tar.gz"; - sha256 = "08r0if7dry2q7p34gf7ffyrlnf4bdvnprxgydlfxgfnvq8f3f4bs"; - }; - - buildInputs = with self; [ pytest pytestrunner hypothesis ]; - meta = { - description = "Super-fast, efficiently stored Trie for Python"; - homepage = "https://github.com/kmike/datrie"; - license = licenses.lgpl2; - maintainers = with maintainers; [ lewo ]; - }; - }; + datrie = callPackage ../development/python-modules/datrie { }; heapdict = buildPythonPackage rec { name = "HeapDict-${version}";