From bf8619a820f7354370b0aa5c484540a12dbac9c5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Nov 2021 11:43:37 +0100 Subject: [PATCH] python3Packages.pynina: init at unstable-2021-11-11 --- .../python-modules/pynina/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/pynina/default.nix diff --git a/pkgs/development/python-modules/pynina/default.nix b/pkgs/development/python-modules/pynina/default.nix new file mode 100644 index 000000000000..b9e026886c86 --- /dev/null +++ b/pkgs/development/python-modules/pynina/default.nix @@ -0,0 +1,39 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitLab +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pynina"; + version = "unstable-2021-11-11"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitLab { + owner = "DeerMaximum"; + repo = pname; + rev = "0ac42b28d48af7bcd9c83f5d425b5b23c4c19f02"; + sha256 = "FSrFCs/4tfYcSPz9cgR+LFsRbWIHE1X+ZUl8BWSEaWQ="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "pynina" + ]; + + meta = with lib; { + description = "Python API wrapper to retrieve warnings from the german NINA app"; + homepage = "https://gitlab.com/DeerMaximum/pynina"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87b06b9eb148..05ed6fb855c5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6790,6 +6790,8 @@ in { pynetdicom = callPackage ../development/python-modules/pynetdicom { }; + pynina = callPackage ../development/python-modules/pynina { }; + pynisher = callPackage ../development/python-modules/pynisher { }; pynmea2 = callPackage ../development/python-modules/pynmea2 { };