2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 20:52:14 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2021-03-03 13:24:34 +00:00
|
|
|
, pytestCheckHook
|
2018-10-29 20:52:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "w3lib";
|
2020-05-24 03:22:50 +00:00
|
|
|
version = "1.22.0";
|
2018-10-29 20:52:14 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-24 03:22:50 +00:00
|
|
|
sha256 = "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha";
|
2018-10-29 20:52:14 +00:00
|
|
|
};
|
|
|
|
|
2021-03-03 13:24:34 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "w3lib" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_add_or_replace_parameter"
|
|
|
|
];
|
2018-10-29 20:52:14 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 20:52:14 +00:00
|
|
|
description = "A library of web-related functions";
|
|
|
|
homepage = "https://github.com/scrapy/w3lib";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ drewkett ];
|
|
|
|
};
|
|
|
|
}
|