depot/third_party/nixpkgs/pkgs/development/python-modules/polyswarm-api/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
future,
jsonschema,
pytestCheckHook,
python-dateutil,
pythonOlder,
requests,
responses,
setuptools,
vcrpy,
}:
buildPythonPackage rec {
pname = "polyswarm-api";
version = "3.10.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "polyswarm";
repo = "polyswarm-api";
rev = "refs/tags/${version}";
hash = "sha256-3K0FdqsEjt5cTymgxmt0Ohud/+bsILe9bDclZXJqPV8=";
};
pythonRelaxDeps = [ "future" ];
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 ];
};
}