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

42 lines
771 B
Nix
Raw Normal View History

2021-02-05 22:04:14 +00:00
{ lib
, aiohttp
, attrs
, buildPythonPackage
, fetchPypi
, jmespath
2021-11-17 19:55:53 +00:00
, pythonOlder
2021-02-05 22:04:14 +00:00
}:
buildPythonPackage rec {
pname = "pysma";
2021-11-17 19:55:53 +00:00
version = "0.6.9";
format = "setuptools";
disabled = pythonOlder "3.8";
2021-02-05 22:04:14 +00:00
src = fetchPypi {
inherit pname version;
2021-11-17 19:55:53 +00:00
sha256 = "sha256-2ZU3UjDNo+fpnYK4WlYSu7XqkbpcK7Xz5cUKDABhwdk=";
2021-02-05 22:04:14 +00:00
};
propagatedBuildInputs = [
aiohttp
attrs
jmespath
];
# pypi does not contain tests and GitHub archive not available
doCheck = false;
2021-11-17 19:55:53 +00:00
pythonImportsCheck = [
"pysma"
];
2021-02-05 22:04:14 +00:00
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 ];
};
}