mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
pythonPackages.w3lib: refactor move to python-modules
This commit is contained in:
parent
b794f35441
commit
3ae4a36ae3
2 changed files with 27 additions and 18 deletions
26
pkgs/development/python-modules/w3lib/default.nix
Normal file
26
pkgs/development/python-modules/w3lib/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue