From d8e5f408d5e78aaf39ae81176f1753a247066591 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Feb 2021 23:04:14 +0100 Subject: [PATCH] python3Packages.pysma: init at 0.3.5 --- .../python-modules/pysma/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/pysma/default.nix diff --git a/pkgs/development/python-modules/pysma/default.nix b/pkgs/development/python-modules/pysma/default.nix new file mode 100644 index 000000000000..f1005fe0b7a9 --- /dev/null +++ b/pkgs/development/python-modules/pysma/default.nix @@ -0,0 +1,36 @@ +{ lib +, aiohttp +, attrs +, buildPythonPackage +, fetchPypi +, jmespath +, async-timeout +}: + +buildPythonPackage rec { + pname = "pysma"; + version = "0.3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "1awcsbk14i2aw01f7b7hrmpn9q6vr9v6la0i9n7ldv1h8rzq6j16"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + attrs + jmespath + ]; + + # pypi does not contain tests and GitHub archive not available + doCheck = false; + pythonImportsCheck = [ "pysma" ]; + + meta = with lib; { + description = "Python library for interacting with SMA Solar's WebConnect"; + homepage = "https://github.com/kellerza/pysma"; + 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 a50ce528fc41..3d66eaaa5b0a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5929,6 +5929,8 @@ in { pyslurm = callPackage ../development/python-modules/pyslurm { slurm = pkgs.slurm; }; + pysma = callPackage ../development/python-modules/pysma { }; + pysmb = callPackage ../development/python-modules/pysmb { }; pysmbc = callPackage ../development/python-modules/pysmbc { inherit (pkgs) pkg-config; };