Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / HAP-python / default.nix
blob8380832abd67ba2fd9070697d8f0e0cbaa91370f
1 { lib
2 , buildPythonPackage
3 , base36
4 , cryptography
5 , curve25519-donna
6 , ecdsa
7 , ed25519
8 , fetchFromGitHub
9 , h11
10 , pyqrcode
11 , pytest-asyncio
12 , pytest-timeout
13 , pytestCheckHook
14 , pythonOlder
15 , zeroconf
18 buildPythonPackage rec {
19   pname = "HAP-python";
20   version = "3.4.1";
21   disabled = pythonOlder "3.5";
23   # pypi package does not include tests
24   src = fetchFromGitHub {
25     owner = "ikalchev";
26     repo = pname;
27     rev = "v${version}";
28     sha256 = "sha256-tZ6Zwlx5J62Xqpxxmt8Phdd9ngtKYhP/p3uor1dRfK8=";
29   };
31   propagatedBuildInputs = [
32     base36
33     cryptography
34     curve25519-donna
35     ecdsa
36     ed25519
37     h11
38     pyqrcode
39     zeroconf
40   ];
42   checkInputs = [
43     pytest-asyncio
44     pytest-timeout
45     pytestCheckHook
46   ];
48   # Disable tests requiring network access
49   disabledTestPaths = [
50     "tests/test_accessory_driver.py"
51     "tests/test_hap_handler.py"
52     "tests/test_hap_protocol.py"
53   ];
55   disabledTests = [
56     "test_persist_and_load"
57     "test_we_can_connect"
58     "test_idle_connection_cleanup"
59     "test_we_can_start_stop"
60     "test_push_event"
61     "test_bridge_run_stop"
62   ];
64   meta = with lib; {
65     homepage = "https://github.com/ikalchev/HAP-python";
66     description = "HomeKit Accessory Protocol implementation in python";
67     license = licenses.asl20;
68     maintainers = with maintainers; [ oro ];
69   };