nixpkgs/pkgs/development/python-modules/pysma/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
772 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";
version = "0.6.11";
2021-11-17 19:55:53 +00:00
format = "setuptools";
disabled = pythonOlder "3.8";
2021-02-05 22:04:14 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-x0sFJAdueSny0XoaOYbYLN8ZRS5B/iEVT62mqd4Voe4=";
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 ];
};
}