diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-05 23:04:14 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-05 23:04:14 +0100 |
commit | d8e5f408d5e78aaf39ae81176f1753a247066591 (patch) | |
tree | f83c99015bc5d4f4749fc87c478fb58a9e3822ab /pkgs/development/python-modules/pysma/default.nix | |
parent | 2a0677fd9aa6c7e4aeccc5dd197fb2385b0fca8e (diff) | |
download | nixpkgs-d8e5f408d5e78aaf39ae81176f1753a247066591.tar nixpkgs-d8e5f408d5e78aaf39ae81176f1753a247066591.tar.gz nixpkgs-d8e5f408d5e78aaf39ae81176f1753a247066591.tar.bz2 nixpkgs-d8e5f408d5e78aaf39ae81176f1753a247066591.tar.lz nixpkgs-d8e5f408d5e78aaf39ae81176f1753a247066591.tar.xz nixpkgs-d8e5f408d5e78aaf39ae81176f1753a247066591.tar.zst nixpkgs-d8e5f408d5e78aaf39ae81176f1753a247066591.zip |
python3Packages.pysma: init at 0.3.5
Diffstat (limited to 'pkgs/development/python-modules/pysma/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pysma/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pysma/default.nix b/pkgs/development/python-modules/pysma/default.nix new file mode 100644 index 00000000000..f1005fe0b7a --- /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 ]; + }; +} |