From 816b68f48902fd1e3dd12ccf36f3b12b15dc1f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 15 Jun 2021 12:16:32 +0200 Subject: [PATCH 1/3] python3Packages.pyfireservicerota: init at 0.0.40 --- .../pyfireservicerota/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/pyfireservicerota/default.nix diff --git a/pkgs/development/python-modules/pyfireservicerota/default.nix b/pkgs/development/python-modules/pyfireservicerota/default.nix new file mode 100644 index 000000000000..99d910dd8af2 --- /dev/null +++ b/pkgs/development/python-modules/pyfireservicerota/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytz +, oauthlib +, requests +, websocket_client +}: + +buildPythonPackage rec { + pname = "pyfireservicerota"; + version = "0.0.40"; + + src = fetchPypi { + inherit pname version; + sha256 = "8d8173f6682ef2a61367660a15559c8c7a7e00db3f98092e0fa52e771df356f4"; + }; + + propagatedBuildInputs = [ + pytz + oauthlib + requests + websocket_client + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "pyfireservicerota" ]; + + meta = with lib; { + description = "Python 3 API wrapper for FireServiceRota/BrandweerRooster"; + homepage = "https://github.com/cyberjunky/python-fireservicerota"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a84a3adfb507..84b49fd40ef7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5187,6 +5187,8 @@ in { pyatag = callPackage ../development/python-modules/pyatag { }; + pyfireservicerota = callPackage ../development/python-modules/pyfireservicerota { }; + pynndescent = callPackage ../development/python-modules/pynndescent { }; pynobo = callPackage ../development/python-modules/pynobo { }; From 7cd991ea1c64451b6cdfe653d9635c2db2f3a826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 15 Jun 2021 12:17:14 +0200 Subject: [PATCH 2/3] home-assistant: update component-packages.nix --- 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 e62d3dbcf4b0..5cb6800d7e1f 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -259,7 +259,7 @@ "filesize" = ps: with ps; [ ]; "filter" = ps: with ps; [ sqlalchemy ]; "fints" = ps: with ps; [ fints ]; - "fireservicerota" = ps: with ps; [ ]; # missing inputs: pyfireservicerota + "fireservicerota" = ps: with ps; [ pyfireservicerota ]; "firmata" = ps: with ps; [ pymata-express ]; "fitbit" = ps: with ps; [ aiohttp-cors fitbit ]; "fixer" = ps: with ps; [ fixerio ]; From 4ba8b0b9814fc4eb377cc59d4c17ebcf70690fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 15 Jun 2021 12:20:51 +0200 Subject: [PATCH 3/3] home-assistant: test fireservicerota component --- 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 551ab4dedf64..12e4b8343c75 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -374,6 +374,7 @@ in with py.pkgs; buildPythonApplication rec { "file" "filesize" "filter" + "fireservicerota" "firmata" "flo" "flume"