1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "w3lib";
10 version = "2.1.1";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-DhGY8bdFGVtrPdGkzWYBH7+C8wpNnauu4fnlyG8CAnQ=";
18 };
19
20 nativeCheckInputs = [
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [
25 "w3lib"
26 ];
27
28 disabledTests = [
29 "test_add_or_replace_parameter"
30 ];
31
32 meta = with lib; {
33 description = "Library of web-related functions";
34 homepage = "https://github.com/scrapy/w3lib";
35 changelog = "https://github.com/scrapy/w3lib/blob/v${version}/NEWS";
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ ];
38 };
39}