summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-01-29 16:47:13 +0100
committerGitHub <noreply@github.com>2021-01-29 16:47:13 +0100
commit90a9b71b73ffdf2b7fc8f9d03e81968cbc1ff344 (patch)
tree19fb6872331661173c68de5c60f741d6421a5642 /pkgs
parenta6507da440f1e47d1497e8cc3c039a5e8f9a16cf (diff)
parent8b080489d34cad7de38499a248f39dcd10aa9791 (diff)
Merge pull request #109629 from fabaff/regenmaschine
python3Packages.regenmaschine: init at 3.1.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/regenmaschine/default.nix51
-rw-r--r--pkgs/servers/home-assistant/component-packages.nix2
-rw-r--r--pkgs/top-level/python-packages.nix2
3 files changed, 54 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/regenmaschine/default.nix b/pkgs/development/python-modules/regenmaschine/default.nix
new file mode 100644
index 000000000000..3380ef99f180
--- /dev/null
+++ b/pkgs/development/python-modules/regenmaschine/default.nix
@@ -0,0 +1,51 @@
+{ lib
+, aiohttp
+, aresponses
+, asynctest
+, buildPythonPackage
+, fetchFromGitHub
+, poetry-core
+, pytest-aiohttp
+, pytest-asyncio
+, pytest-cov
+, pytest-mock
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "regenmaschine";
+ version = "3.1.1";
+ format = "pyproject";
+
+ src = fetchFromGitHub {
+ owner = "bachya";
+ repo = pname;
+ rev = version;
+ sha256 = "0m6i7vspp8ssdk2k32kznql1j8gkp300kzb7pk67hzvpijdy3mca";
+ };
+
+ nativeBuildInputs = [ poetry-core ];
+
+ propagatedBuildInputs = [ aiohttp ];
+
+ checkInputs = [
+ aresponses
+ asynctest
+ pytest-aiohttp
+ pytest-asyncio
+ pytest-cov
+ pytest-mock
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [ "regenmaschine" ];
+
+ __darwinAllowLocalNetworking = true;
+
+ meta = with lib; {
+ description = "Python library for interacting with RainMachine smart sprinkler controllers";
+ homepage = "https://github.com/bachya/regenmaschine";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ fab ];
+ };
+}
diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix
index 051f7032bd5e..68249bddbbd4 100644
--- a/pkgs/servers/home-assistant/component-packages.nix
+++ b/pkgs/servers/home-assistant/component-packages.nix
@@ -659,7 +659,7 @@
"rainbird" = ps: with ps; [ ]; # missing inputs: pyrainbird
"raincloud" = ps: with ps; [ ]; # missing inputs: raincloudy
"rainforest_eagle" = ps: with ps; [ ]; # missing inputs: eagle200_reader uEagle
- "rainmachine" = ps: with ps; [ ]; # missing inputs: regenmaschine
+ "rainmachine" = ps: with ps; [ regenmaschine ];
"random" = ps: with ps; [ ];
"raspihats" = ps: with ps; [ smbus-cffi ]; # missing inputs: raspihats
"raspyrfm" = ps: with ps; [ ]; # missing inputs: raspyrfm-client
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 3beae2869624..3fc5c65ac81e 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6654,6 +6654,8 @@ in {
reflink = callPackage ../development/python-modules/reflink { };
+ regenmaschine = callPackage ../development/python-modules/regenmaschine { };
+
regex = callPackage ../development/python-modules/regex { };
regional = callPackage ../development/python-modules/regional { };