diff options
Diffstat (limited to 'pkgs/development/python-modules/pyixapi/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyixapi/default.nix | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/pyixapi/default.nix b/pkgs/development/python-modules/pyixapi/default.nix index e452224d9e4f..50c825dcc959 100644 --- a/pkgs/development/python-modules/pyixapi/default.nix +++ b/pkgs/development/python-modules/pyixapi/default.nix @@ -1,9 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, requests -, pyjwt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyjwt, + pythonOlder, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -11,26 +14,32 @@ buildPythonPackage rec { version = "0.2.3"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-qkgPBIYv9xzGa29RiPAU3zNhcyutTUX1Vkmpd9YdeJU="; + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "peering-manager"; + repo = "pyixapi"; + rev = "refs/tags/${version}"; + hash = "sha256-IiLjxOtyxGSaItxgEbsF8AER/j4Qe7SP9ZAEPjTiYI4="; }; - nativeBuildInputs = [ - poetry-core - ]; + pythonRelaxDeps = [ "pyjwt" ]; + + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ requests pyjwt ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "pyixapi" ]; meta = with lib; { + description = "Python API client library for IX-API"; 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; }; |