python312Packages.polyswarm-api: init at 3.5.2

Library to interface with the PolySwarm consumer APIs

https://github.com/polyswarm/polyswarm-api
This commit is contained in:
Fabian Affolter 2024-03-31 17:45:45 +02:00
parent 7b760892d2
commit f5d6efdd9e
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,66 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, jsonschema
, pytestCheckHook
, python-dateutil
, pythonOlder
, pythonRelaxDepsHook
, requests
, responses
, setuptools
, vcrpy
}:
buildPythonPackage rec {
pname = "polyswarm-api";
version = "3.5.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "polyswarm";
repo = "polyswarm-api";
rev = "refs/tags/${version}";
hash = "sha256-GMLgph6mjDSDn2CCfeqcqFY2gjtziH4xVHJhYTGRYw8=";
};
pythonRelaxDeps = [
"future"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
build-system = [
setuptools
];
dependencies = [
future
jsonschema
python-dateutil
requests
];
nativeCheckInputs = [
pytestCheckHook
responses
vcrpy
];
pythonImportsCheck = [
"polyswarm_api"
];
meta = with lib; {
description = "Library to interface with the PolySwarm consumer APIs";
homepage = "https://github.com/polyswarm/polyswarm-api";
changelog = "https://github.com/polyswarm/polyswarm-api/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -10068,6 +10068,8 @@ self: super: with self; {
polygon3 = callPackage ../development/python-modules/polygon3 { };
polyswarm-api = callPackage ../development/python-modules/polyswarm-api { };
pomegranate = callPackage ../development/python-modules/pomegranate { };
pontos = callPackage ../development/python-modules/pontos { };