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