2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, requests
|
|
|
|
, pyjwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyixapi";
|
|
|
|
version = "0.2.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-c5a8Ldbzgh8gXuCDYbKk9zR6AoiBF3Y/VQvGlSwXpR4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pyjwt
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyixapi" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/peering-manager/pyixapi/";
|
|
|
|
changelog = "https://github.com/peering-manager/pyixapi/releases/tag/${version}";
|
|
|
|
description = "Python API client library for IX-API";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.wdz.members;
|
|
|
|
};
|
|
|
|
}
|