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

37 lines
726 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-04-29 09:04:48 +01:00
version = "0.4.3";
2021-02-05 22:04:14 +00:00
src = fetchPypi {
inherit pname version;
2021-04-29 09:04:48 +01:00
sha256 = "sha256-vriMnJFS7yfTyDT1f4sx1xEBTQjqc4ZHmkdHp1vcd+Q=";
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 ];
};
}