1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 fetchPypi,
6 hatchling,
7 pydantic,
8 pythonOlder,
9 scrapy,
10}:
11
12buildPythonPackage rec {
13 pname = "itemadapter";
14 version = "0.12.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-pQiCQ+iO/jCY8XIIVecHF25zVa2H0dIOKwMpf10V0b4=";
20 };
21
22 build-system = [ hatchling ];
23
24 optional-dependencies = {
25 attrs = [ attrs ];
26 pydantic = [ pydantic ];
27 scrapy = [ scrapy ];
28 };
29
30 # Infinite recursion with Scrapy
31 doCheck = false;
32
33 pythonImportsCheck = [ "itemadapter" ];
34
35 meta = with lib; {
36 description = "Common interface for data container classes";
37 homepage = "https://github.com/scrapy/itemadapter";
38 changelog = "https://github.com/scrapy/itemadapter/raw/v${version}/Changelog.md";
39 license = licenses.bsd3;
40 maintainers = [ ];
41 };
42}