nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, requests
5, requests-oauthlib
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "homeconnect";
11 version = "0.7.0";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-/h0dEVmP0R9tVt56mvu72Ksrvnuox1FA7BgrZMOhV6Q=";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 requests-oauthlib
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "homeconnect"
31 ];
32
33 meta = with lib; {
34 description = "Python client for the BSH Home Connect REST API";
35 homepage = "https://github.com/DavidMStraub/homeconnect";
36 changelog = "https://github.com/DavidMStraub/homeconnect/releases/tag/v${version}";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}