1{
2 lib,
3 buildPythonPackage,
4 isPy27,
5 fetchFromGitHub,
6 poetry-core,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "spiderpy";
12 version = "1.7.2";
13 format = "pyproject";
14
15 disabled = isPy27;
16
17 src = fetchFromGitHub {
18 owner = "peternijssen";
19 repo = "spiderpy";
20 rev = version;
21 hash = "sha256-Yujy8HSMbK2DQ/913r2c74hKPYDfcHFKq04ysqxG+go=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 propagatedBuildInputs = [ requests ];
27
28 # tests don't mock remote resources
29 doCheck = false;
30
31 pythonImportsCheck = [ "spiderpy.spiderapi" ];
32
33 meta = with lib; {
34 description = "Unofficial Python wrapper for the Spider API";
35 homepage = "https://www.github.com/peternijssen/spiderpy";
36 license = licenses.mit;
37 maintainers = with maintainers; [ dotlambda ];
38 };
39}