From 08e8952e1ab13d2f1b84ee5d0c735f306fb99cd8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Dec 2024 00:38:09 +0100 Subject: [PATCH] python312Packages.pynordpool: init at 0.2.2 Python API for Nordpool https://github.com/gjohansson-ST/pynordpool --- .../python-modules/pynordpool/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/pynordpool/default.nix diff --git a/pkgs/development/python-modules/pynordpool/default.nix b/pkgs/development/python-modules/pynordpool/default.nix new file mode 100644 index 0000000000000..7a67a715d96a4 --- /dev/null +++ b/pkgs/development/python-modules/pynordpool/default.nix @@ -0,0 +1,40 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "pynordpool"; + version = "0.2.2"; + pyproject = true; + + disabled = pythonOlder "3.11"; + + src = fetchFromGitHub { + owner = "gjohansson-ST"; + repo = "pynordpool"; + rev = "refs/tags/v${version}"; + hash = "sha256-JoH9ROT/npBd8BTEuynsF9gbE0jJgYLFPiwFv0s9sH4="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ aiohttp ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ "pynordpool" ]; + + meta = { + description = "Python api for Nordpool"; + homepage = "https://github.com/gjohansson-ST/pynordpool"; + changelog = "https://github.com/gjohansson-ST/pynordpool/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e97f3474650cb..8383dd5581e91 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10518,6 +10518,8 @@ self: super: with self; { pynotifier = callPackage ../development/python-modules/pynotifier { }; + pynordpool = callPackage ../development/python-modules/pynordpool { }; + pynslookup = callPackage ../development/python-modules/pynslookup { }; pynuki = callPackage ../development/python-modules/pynuki { };