1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
46 lines
921 B
Nix
46 lines
921 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
w3lib,
|
|
parsel,
|
|
jmespath,
|
|
itemadapter,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "itemloaders";
|
|
version = "1.3.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scrapy";
|
|
repo = "itemloaders";
|
|
tag = "v${version}";
|
|
hash = "sha256-Hs3FodJAWZGeo+kMmcto5WW433RekwVuucaJl8TKc+0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
w3lib
|
|
parsel
|
|
jmespath
|
|
itemadapter
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "itemloaders" ];
|
|
|
|
meta = {
|
|
description = "Library to populate items using XPath and CSS with a convenient API";
|
|
homepage = "https://github.com/scrapy/itemloaders";
|
|
changelog = "https://github.com/scrapy/itemloaders/raw/v${version}/docs/release-notes.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|