e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
51 lines
992 B
Nix
51 lines
992 B
Nix
{ lib
|
|
, authlib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pkce
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, simplejson
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvicare";
|
|
version = "2.32.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "somm15";
|
|
repo = "PyViCare";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-qK5JCaCL+gbgNcBo5IjhlRrXD1IhA1B56hmcjvPie6Y=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "version_config=True," 'version="${version}",' \
|
|
--replace "'setuptools-git-versioning<1.8.0'" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
authlib
|
|
pkce
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
simplejson
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"PyViCare"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python Library to access Viessmann ViCare API";
|
|
homepage = "https://github.com/somm15/PyViCare";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|