nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 authlib,
4 buildPythonPackage,
5 deprecated,
6 fetchFromGitHub,
7 poetry-core,
8 requests,
9 pytest-cov-stub,
10 pytestCheckHook,
11}:
12
13buildPythonPackage (finalAttrs: {
14 pname = "pyvicare";
15 version = "2.56.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "openviess";
20 repo = "PyViCare";
21 tag = finalAttrs.version;
22 hash = "sha256-DRCetTR7sFaShau3in0548FoR+rOaG28SGqfAjAVsn4=";
23 };
24
25 postPatch = ''
26 substituteInPlace pyproject.toml \
27 --replace-fail 'version = "0.1.0"' 'version = "${finalAttrs.version}"'
28 '';
29
30 build-system = [ poetry-core ];
31
32 dependencies = [
33 authlib
34 deprecated
35 requests
36 ];
37
38 nativeCheckInputs = [
39 pytest-cov-stub
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "PyViCare" ];
44
45 meta = {
46 description = "Python Library to access Viessmann ViCare API";
47 homepage = "https://github.com/somm15/PyViCare";
48 changelog = "https://github.com/openviess/PyViCare/releases/tag/${finalAttrs.version}";
49 license = lib.licenses.asl20;
50 maintainers = with lib.maintainers; [ fab ];
51 };
52})