pythonPackages.queuelib: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 16:53:41 -04:00
parent 3ae4a36ae3
commit 89623a675e
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 26 additions and 18 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };