depot/third_party/nixpkgs/pkgs/development/python-modules/scrapy-deltafetch/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

33 lines
722 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
scrapy,
setuptools,
}:
buildPythonPackage rec {
pname = "scrapy-deltafetch";
version = "2.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-E/eWi9D/rhM+Kh3t4hXmg7jJUoXwRiYGA6XD4l8tV7A=";
};
dependencies = [ scrapy ];
build-system = [ setuptools ];
# no tests
doCheck = false;
pythonImportsCheck = [ "scrapy_deltafetch" ];
meta = {
description = "Scrapy spider middleware to ignore requests to pages containing items seen in previous crawls";
homepage = "https://github.com/scrapy-plugins/scrapy-deltafetch";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ evanjs ];
};
}