nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 w3lib,
7 parsel,
8 jmespath,
9 itemadapter,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "itemloaders";
15 version = "1.3.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "scrapy";
20 repo = "itemloaders";
21 tag = "v${version}";
22 hash = "sha256-Hs3FodJAWZGeo+kMmcto5WW433RekwVuucaJl8TKc+0=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 w3lib
29 parsel
30 jmespath
31 itemadapter
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "itemloaders" ];
37
38 meta = {
39 description = "Library to populate items using XPath and CSS with a convenient API";
40 homepage = "https://github.com/scrapy/itemloaders";
41 changelog = "https://github.com/scrapy/itemloaders/raw/v${version}/docs/release-notes.rst";
42 license = lib.licenses.bsd3;
43 maintainers = [ ];
44 };
45}