Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytest-cov-stub,
7 pytest-mock,
8 pytest-socket,
9 pytestCheckHook,
10 requests,
11 responses,
12}:
13
14buildPythonPackage rec {
15 pname = "python-tado";
16 version = "0.19.2";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "wmalgadey";
21 repo = "PyTado";
22 tag = version;
23 hash = "sha256-me62VPjKU+vh0vo4Fl86sEse1QZYD2zDpxchSiUcxTY=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [ requests ];
29
30 nativeCheckInputs = [
31 pytest-cov-stub
32 pytest-mock
33 pytest-socket
34 pytestCheckHook
35 responses
36 ];
37
38 disabledTests = [
39 # network access
40 "test_interface_with_tado_api"
41 ];
42
43 disabledTestPaths = [
44 # network access
45 "tests/test_my_tado.py"
46 "tests/test_my_zone.py"
47 ];
48
49 pythonImportsCheck = [ "PyTado" ];
50
51 meta = with lib; {
52 description = "Python binding for Tado web API";
53 homepage = "https://github.com/wmalgadey/PyTado";
54 changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${src.tag}";
55 license = licenses.gpl3Plus;
56 maintainers = with maintainers; [ jamiemagee ];
57 mainProgram = "pytado";
58 };
59}