nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "w3lib";
11 version = "2.3.1";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-XIrAKjAnV2F0wrYeuaIXC6Gxl8rnZwgHcbbx/r2iSaQ=";
17 };
18
19 build-system = [ setuptools ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "w3lib" ];
24
25 meta = {
26 description = "Library of web-related functions";
27 homepage = "https://github.com/scrapy/w3lib";
28 changelog = "https://github.com/scrapy/w3lib/blob/v${version}/NEWS";
29 license = lib.licenses.bsd3;
30 maintainers = [ ];
31 };
32}