summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/scrapy-splash/default.nix
blob: 2d060b70fc1248ff997264718023c59649d44f64 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hypothesis,
  pytest-twisted,
  pytestCheckHook,
  scrapy,
  setuptools,
  six,
}:

buildPythonPackage rec {
  pname = "scrapy-splash";
  version = "0.11.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "scrapy-plugins";
    repo = "scrapy-splash";
    tag = version;
    hash = "sha256-eOWqSCuuZtUtaEuAew4g0P67N0zClaguHn2u4ZMT3FU=";
  };

  build-system = [ setuptools ];

  dependencies = [
    scrapy
    six
  ];

  pythonImportsCheck = [ "scrapy_splash" ];

  nativeCheckInputs = [
    hypothesis
    pytest-twisted
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/scrapy-plugins/scrapy-splash/blob/${src.tag}/CHANGES.rst";
    description = "Scrapy+Splash for JavaScript integration";
    homepage = "https://github.com/scrapy-plugins/scrapy-splash";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ evanjs ];
    # incompatible with scrapy >= 2.14
    # also deprecated by scrapy committers, see https://github.com/scrapy-plugins/scrapy-splash/issues/327
    broken = true;
  };
}