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