Diff: https://github.com/openviess/PyViCare/compare/2.51.0...2.52.0 Changelog: https://github.com/openviess/PyViCare/releases/tag/2.52.0
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
authlib,
|
|
buildPythonPackage,
|
|
deprecated,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
requests,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvicare";
|
|
version = "2.52.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openviess";
|
|
repo = "PyViCare";
|
|
tag = version;
|
|
hash = "sha256-Fq4XRJIN7f5SgSkSh0EveQHSHT35NVvCbPEEeW8h+vc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail 'version = "0.1.0"' 'version = "${version}"'
|
|
'';
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
authlib
|
|
deprecated
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "PyViCare" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/openviess/PyViCare/releases/tag/${src.tag}";
|
|
description = "Python Library to access Viessmann ViCare API";
|
|
homepage = "https://github.com/somm15/PyViCare";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|