Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, w3lib 6, parsel 7, jmespath 8, itemadapter 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "itemloaders"; 14 version = "1.0.1"; 15 16 disabled = isPy27; 17 18 # Tests not included in PyPI tarball 19 src = fetchFromGitHub { 20 owner = "scrapy"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "0frs0s876ddha844vhnhhiggyk3qbhhngrwkvgg3c0mrnn282f6k"; 24 }; 25 26 propagatedBuildInputs = [ w3lib parsel jmespath itemadapter ]; 27 28 checkInputs = [ pytestCheckHook ]; 29 30 meta = with lib; { 31 description = "Base library for scrapy's ItemLoader"; 32 homepage = "https://github.com/scrapy/itemloaders"; 33 license = licenses.bsd3; 34 maintainers = [ maintainers.marsam ]; 35 }; 36}