3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pysma/default.nix

37 lines
724 B
Nix
Raw Normal View History

2021-02-05 22:04:14 +00:00
{ lib
, aiohttp
, attrs
, buildPythonPackage
, fetchPypi
, jmespath
, async-timeout
}:
buildPythonPackage rec {
pname = "pysma";
2021-03-22 23:40:22 +00:00
version = "0.4";
2021-02-05 22:04:14 +00:00
src = fetchPypi {
inherit pname version;
2021-03-22 23:40:22 +00:00
sha256 = "sha256-BOVALVFb/p2q3A4NkvgtwmL5fNvwMCk0hb1L5MRWzHY=";
2021-02-05 22:04:14 +00:00
};
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 ];
};
}