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