From f09a1ac2b6d9e46eaa44aa545451ff5f45dc0f5e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Jun 2021 11:30:29 +0200 Subject: [PATCH 1/3] python3Packages.pyipma: init at 2.1.5 --- .../python-modules/pyipma/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/pyipma/default.nix diff --git a/pkgs/development/python-modules/pyipma/default.nix b/pkgs/development/python-modules/pyipma/default.nix new file mode 100644 index 000000000000..b34c4838cb8d --- /dev/null +++ b/pkgs/development/python-modules/pyipma/default.nix @@ -0,0 +1,36 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchPypi +, geopy +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyipma"; + version = "2.1.5"; + disabled = pythonOlder "3.7"; + + # Request for GitHub releases, https://github.com/dgomes/pyipma/issues/10 + src = fetchPypi { + inherit pname version; + sha256 = "0hq5dasqpsn64x2sf6a28hdmysygmcdq4in6s08w97jfvwc6xmym"; + }; + + propagatedBuildInputs = [ + aiohttp + geopy + ]; + + # Project has no tests included in the PyPI releases + doCheck = false; + + pythonImportsCheck = [ "pyipma" ]; + + meta = with lib; { + description = "Python library to retrieve information from Instituto Português do Mar e Atmosfera"; + homepage = "https://github.com/dgomes/pyipma"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d3c455f41fef..f4690c71f717 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5965,6 +5965,8 @@ in { pyintesishome = callPackage ../development/python-modules/pyintesishome { }; + pyipma = callPackage ../development/python-modules/pyipma { }; + pyipp = callPackage ../development/python-modules/pyipp { }; pyiqvia = callPackage ../development/python-modules/pyiqvia { }; From 2bbc83edc4e3031aaeaae48185a51d0dd4b382a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Jun 2021 11:31:59 +0200 Subject: [PATCH 2/3] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 62684b3c0ba3..6c3ce7142375 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -405,7 +405,7 @@ "ios" = ps: with ps; [ aiohttp-cors ifaddr zeroconf ]; "iota" = ps: with ps; [ ]; # missing inputs: pyota "iperf3" = ps: with ps; [ ]; # missing inputs: iperf3 - "ipma" = ps: with ps; [ ]; # missing inputs: pyipma + "ipma" = ps: with ps; [ pyipma ]; "ipp" = ps: with ps; [ pyipp ]; "iqvia" = ps: with ps; [ numpy pyiqvia ]; "irish_rail_transport" = ps: with ps; [ ]; # missing inputs: pyirishrail From 5988bc29b304c54b7d30547057d7c0f90b3bd0af Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Jun 2021 11:33:01 +0200 Subject: [PATCH 3/3] home-assistant: enable ipma tests --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 53cb0cac8430..3fa5d86f264d 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -474,6 +474,7 @@ in with py.pkgs; buildPythonApplication rec { "intent" "intent_script" "ios" + "ipma" "ipp" "iqvia" "islamic_prayer_times"