From 77092e21aaaed0f11eec4ad4464caaec0f281149 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Feb 2021 14:13:21 +0100 Subject: [PATCH] python3Packages.pyrisco: init 0.3.1 --- .../python-modules/pyrisco/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/pyrisco/default.nix diff --git a/pkgs/development/python-modules/pyrisco/default.nix b/pkgs/development/python-modules/pyrisco/default.nix new file mode 100644 index 000000000000..b9df9d36d41d --- /dev/null +++ b/pkgs/development/python-modules/pyrisco/default.nix @@ -0,0 +1,32 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyrisco"; + version = "0.3.1"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "OnFreund"; + repo = pname; + rev = "v${version}"; + sha256 = "1im29h4rxnp98aqzgzjj5i8jv2h5zw9c5yx8xxzl4cmr3yila9zw"; + }; + + propagatedBuildInputs = [ aiohttp ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "pyrisco" ]; + + meta = with lib; { + description = "Python interface to Risco alarm systems through Risco Cloud"; + homepage = "https://github.com/OnFreund/pyrisco"; + 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 17f6624c42ea..f519ca456e74 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5880,6 +5880,8 @@ in { pyres = callPackage ../development/python-modules/pyres { }; + pyrisco = callPackage ../development/python-modules/pyrisco { }; + pyRFC3339 = callPackage ../development/python-modules/pyrfc3339 { }; PyRMVtransport = callPackage ../development/python-modules/PyRMVtransport { };