From 89623a675e7a607e5aa99e56d642d5fe4973c4cb Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 16:53:41 -0400 Subject: [PATCH] pythonPackages.queuelib: refactor move to python-modules --- .../python-modules/queuelib/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +------------- 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/queuelib/default.nix diff --git a/pkgs/development/python-modules/queuelib/default.nix b/pkgs/development/python-modules/queuelib/default.nix new file mode 100644 index 00000000000..e80235bcdad --- /dev/null +++ b/pkgs/development/python-modules/queuelib/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +}: + +buildPythonPackage rec { + pname = "queuelib"; + version = "1.4.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "a6829918157ed433fafa87b0bb1e93e3e63c885270166db5884a02c34c86f914"; + }; + + buildInputs = [ pytest ]; + + meta = with stdenv.lib; { + description = "A collection of persistent (disk-based) queues for Python"; + homepage = "https://github.com/scrapy/queuelib"; + license = licenses.bsd3; + maintainers = with maintainers; [ drewkett ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ef404d8a293..bf5537f858b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4541,24 +4541,7 @@ in { w3lib = callPackage ../development/python-modules/w3lib { }; - queuelib = buildPythonPackage rec { - name = "queuelib-${version}"; - version = "1.4.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/q/queuelib/${name}.tar.gz"; - sha256 = "a6829918157ed433fafa87b0bb1e93e3e63c885270166db5884a02c34c86f914"; - }; - - buildInputs = with self ; [ pytest ]; - - meta = { - description = "A collection of persistent (disk-based) queues for Python"; - homepage = "https://github.com/scrapy/queuelib"; - license = licenses.bsd3; - maintainers = with maintainers; [ drewkett ]; - }; - }; + queuelib = callPackage ../development/python-modules/queuelib { }; scrapy = callPackage ../development/python-modules/scrapy { };