summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/scrapy-deltafetch/default.nix
blob: 0e82882c8c89e96959a9b0f6041e0d9f1c64e5f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  fetchPypi,
  buildPythonPackage,
  scrapy,
  setuptools,
}:

buildPythonPackage rec {
  pname = "scrapy-deltafetch";
  version = "2.1.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ZtvB10g6j/JNcpyLZJS4R+8DC7TYg0MWQMvM0ncaJxM=";
  };

  dependencies = [ scrapy ];

  build-system = [ setuptools ];

  # no tests
  doCheck = false;
  pythonImportsCheck = [ "scrapy_deltafetch" ];

  meta = {
    # https://github.com/scrapy-plugins/scrapy-deltafetch/pull/50
    broken = lib.versionAtLeast scrapy.version "2.12";
    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 ];
  };
}