2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-04-21 15:54:59 +00:00
|
|
|
, poetry-core
|
2023-10-09 19:29:22 +00:00
|
|
|
, requests
|
|
|
|
, pyjwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
poetry-core
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
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;
|
|
|
|
};
|
|
|
|
}
|