2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
poetry-core,
|
|
|
|
requests,
|
|
|
|
pyjwt,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyixapi";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.3";
|
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-qkgPBIYv9xzGa29RiPAU3zNhcyutTUX1Vkmpd9YdeJU=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|