2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-29 16:52:14 -04:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-03-03 14:24:34 +01:00
|
|
|
, pytestCheckHook
|
2022-12-19 17:12:05 +01:00
|
|
|
, pythonOlder
|
2018-10-29 16:52:14 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "w3lib";
|
2022-12-19 17:12:05 +01:00
|
|
|
version = "2.1.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-10-29 16:52:14 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-19 17:12:05 +01:00
|
|
|
hash = "sha256-DhGY8bdFGVtrPdGkzWYBH7+C8wpNnauu4fnlyG8CAnQ=";
|
2018-10-29 16:52:14 -04:00
|
|
|
};
|
|
|
|
|
2022-12-19 17:08:21 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-03-03 14:24:34 +01:00
|
|
|
|
2022-12-19 17:08:21 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"w3lib"
|
|
|
|
];
|
2021-03-03 14:24:34 +01:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_add_or_replace_parameter"
|
|
|
|
];
|
2018-10-29 16:52:14 -04:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-12-19 17:08:21 +01:00
|
|
|
description = "Library of web-related functions";
|
2018-10-29 16:52:14 -04:00
|
|
|
homepage = "https://github.com/scrapy/w3lib";
|
2022-12-19 17:08:21 +01:00
|
|
|
changelog = "https://github.com/scrapy/w3lib/blob/v${version}/NEWS";
|
2018-10-29 16:52:14 -04:00
|
|
|
license = licenses.bsd3;
|
2022-06-23 01:24:25 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-29 16:52:14 -04:00
|
|
|
};
|
|
|
|
}
|