3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pysma/default.nix
2021-03-23 00:40:22 +01:00

37 lines
724 B
Nix

{ lib
, aiohttp
, attrs
, buildPythonPackage
, fetchPypi
, jmespath
, async-timeout
}:
buildPythonPackage rec {
pname = "pysma";
version = "0.4";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BOVALVFb/p2q3A4NkvgtwmL5fNvwMCk0hb1L5MRWzHY=";
};
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 ];
};
}