pythonPackages.w3lib: refactor move to python-modules

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

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
, pytest
}:
buildPythonPackage rec {
pname = "w3lib";
version = "1.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "0vshh300ay5wn5hwl9qcb32m71pz5s6miy0if56vm4nggy159inq";
};
buildInputs = [ six pytest ];
meta = with stdenv.lib; {
description = "A library of web-related functions";
homepage = "https://github.com/scrapy/w3lib";
license = licenses.bsd3;
maintainers = with maintainers; [ drewkett ];
};
}

View File

@ -4539,24 +4539,7 @@ in {
topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22
w3lib = buildPythonPackage rec {
name = "w3lib-${version}";
version = "1.17.0";
buildInputs = with self ; [ six pytest ];
src = pkgs.fetchurl {
url = "mirror://pypi/w/w3lib/${name}.tar.gz";
sha256 = "0vshh300ay5wn5hwl9qcb32m71pz5s6miy0if56vm4nggy159inq";
};
meta = {
description = "A library of web-related functions";
homepage = "https://github.com/scrapy/w3lib";
license = licenses.bsd3;
maintainers = with maintainers; [ drewkett ];
};
};
w3lib = callPackage ../development/python-modules/w3lib { };
queuelib = buildPythonPackage rec {
name = "queuelib-${version}";