1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 jsonschema,
6 pytestCheckHook,
7 python-dateutil,
8 pythonOlder,
9 requests,
10 responses,
11 setuptools,
12 vcrpy,
13}:
14
15buildPythonPackage rec {
16 pname = "polyswarm-api";
17 version = "3.14.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "polyswarm";
24 repo = "polyswarm-api";
25 tag = version;
26 hash = "sha256-hf3TKUYkCgKqJYAQLMamcwDBl4uJG/8Gtv/DNHePcZI=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 jsonschema
33 python-dateutil
34 requests
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 responses
40 vcrpy
41 ];
42
43 pythonImportsCheck = [ "polyswarm_api" ];
44
45 meta = with lib; {
46 description = "Library to interface with the PolySwarm consumer APIs";
47 homepage = "https://github.com/polyswarm/polyswarm-api";
48 changelog = "https://github.com/polyswarm/polyswarm-api/releases/tag/${src.tag}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 };
52}