Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / polyswarm-api / default.nix
blobc9d851f49a6daf6eff44ee317f85b637e02fa903
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , future
5 , jsonschema
6 , pytestCheckHook
7 , python-dateutil
8 , pythonOlder
9 , pythonRelaxDepsHook
10 , requests
11 , responses
12 , setuptools
13 , vcrpy
16 buildPythonPackage rec {
17   pname = "polyswarm-api";
18   version = "3.5.2";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "polyswarm";
25     repo = "polyswarm-api";
26     rev = "refs/tags/${version}";
27     hash = "sha256-GMLgph6mjDSDn2CCfeqcqFY2gjtziH4xVHJhYTGRYw8=";
28   };
30   pythonRelaxDeps = [
31     "future"
32   ];
34   nativeBuildInputs = [
35     pythonRelaxDepsHook
36   ];
38   build-system = [
39     setuptools
40   ];
42   dependencies = [
43     future
44     jsonschema
45     python-dateutil
46     requests
47   ];
49   nativeCheckInputs = [
50     pytestCheckHook
51     responses
52     vcrpy
53   ];
55   pythonImportsCheck = [
56     "polyswarm_api"
57   ];
59   meta = with lib; {
60     description = "Library to interface with the PolySwarm consumer APIs";
61     homepage = "https://github.com/polyswarm/polyswarm-api";
62     changelog = "https://github.com/polyswarm/polyswarm-api/releases/tag/${version}";
63     license = licenses.mit;
64     maintainers = with maintainers; [ fab ];
65   };