40 lines
757 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyrympro";
version = "0.0.9";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "OnFreund";
repo = "pyrympro";
tag = "v${version}";
hash = "sha256-+KgYdiVuX8Ycw0Odte/EXsoWiMaLmTU6zTeJCw9jwvs=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "pyrympro" ];
meta = with lib; {
description = "Module to interact with Read Your Meter Pro";
homepage = "https://github.com/OnFreund/pyrympro";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}