nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchPypi, buildPythonPackage, scrapy, bsddb3 }:
2
3buildPythonPackage rec {
4 pname = "scrapy-deltafetch";
5 version = "1.2.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1m511psddvlapg492ny36l8rzy7z4i39yx6a1agxzfz6s9b83fq8";
10 };
11
12 propagatedBuildInputs = [ bsddb3 scrapy ];
13
14 # no tests
15 doCheck = false;
16 pythonImportsCheck = [ "scrapy_deltafetch" ];
17
18 meta = with lib; {
19 description = "Scrapy spider middleware to ignore requests to pages containing items seen in previous crawls";
20 homepage = "https://github.com/scrapy-plugins/scrapy-deltafetch";
21 license = licenses.bsd3;
22 maintainers = with maintainers; [ evanjs ];
23 };
24}