aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pyvicare/default.nix
blob: 7c87431d80b301f0ffa27d0ad5226c6b7f50d7f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests_oauthlib
, simplejson
}:

buildPythonPackage rec {
  pname = "pyvicare";
  version = "0.2.5";
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "PyViCare";
    inherit version;
    sha256 = "16wqqjs238ad6znlz2gjadqj8891226bd02a1106xyz6vbbk2gdk";
  };

  propagatedBuildInputs = [
    requests_oauthlib
    simplejson
  ];

  # The published tarball on PyPI is incomplete and there are GitHub releases
  doCheck = false;
  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 ];
  };
}