summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-03-04 18:41:37 +0100
committerGitHub <noreply@github.com>2021-03-04 18:41:37 +0100
commit942cbb4eb6fc68b573af1860ca74e63c84c8dc1a (patch)
tree26019b65f96c6e1ec4af892a3ec63c437c2c2157 /pkgs
parent293283840f1132db8cff7584a88dfa6b47ca0a82 (diff)
parentb08b53dd490bd1f02b85ddd9d84ba692ccfa9456 (diff)
downloadnixpkgs-942cbb4eb6fc68b573af1860ca74e63c84c8dc1a.tar
nixpkgs-942cbb4eb6fc68b573af1860ca74e63c84c8dc1a.tar.gz
nixpkgs-942cbb4eb6fc68b573af1860ca74e63c84c8dc1a.tar.bz2
nixpkgs-942cbb4eb6fc68b573af1860ca74e63c84c8dc1a.tar.lz
nixpkgs-942cbb4eb6fc68b573af1860ca74e63c84c8dc1a.tar.xz
nixpkgs-942cbb4eb6fc68b573af1860ca74e63c84c8dc1a.tar.zst
nixpkgs-942cbb4eb6fc68b573af1860ca74e63c84c8dc1a.zip
Merge pull request #115087 from fabaff/bump-hap-python
python3Packages.HAP-python: 3.1.0 -> 3.3.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/HAP-python/default.nix68
1 files changed, 51 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/HAP-python/default.nix b/pkgs/development/python-modules/HAP-python/default.nix
index 3cd211db755..2e740fcc2c8 100644
--- a/pkgs/development/python-modules/HAP-python/default.nix
+++ b/pkgs/development/python-modules/HAP-python/default.nix
@@ -1,41 +1,75 @@
-{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, curve25519-donna, ed25519
-, cryptography, ecdsa, zeroconf, pytestCheckHook }:
+{ lib
+, buildPythonPackage
+, cryptography
+, curve25519-donna
+, ecdsa
+, ed25519
+, fetchFromGitHub
+, h11
+, pytest-asyncio
+, pytest-timeout
+, pytestCheckHook
+, pythonOlder
+, zeroconf
+}:
 
 buildPythonPackage rec {
   pname = "HAP-python";
-  version = "3.1.0";
+  version = "3.3.2";
+  disabled = pythonOlder "3.5";
 
   # pypi package does not include tests
   src = fetchFromGitHub {
     owner = "ikalchev";
     repo = pname;
     rev = "v${version}";
-    sha256 = "1qg38lfjby2xfm09chzc40a7i3b84kgyfs7g4xq8f5m8s39hg6d7";
+    sha256 = "sha256-oDTyFIhf7oogYyh9LpmVtagi1kDXLCc/7c2UH1dL2Sg=";
   };
 
-  disabled = !isPy3k;
-
   propagatedBuildInputs = [
-    curve25519-donna
-    ed25519
     cryptography
+    curve25519-donna
     ecdsa
+    ed25519
+    h11
     zeroconf
   ];
 
-  checkInputs = [ pytestCheckHook ];
+  checkInputs = [
+    pytest-asyncio
+    pytest-timeout
+    pytestCheckHook
+  ];
 
   disabledTests = [
-    #disable tests needing network
-    "test_persist"
-    "test_setup_endpoints"
+    # Disable tests needing network
+    "camera"
+    "pair"
+    "test_async_subscribe_client_topic"
     "test_auto_add_aid_mac"
-    "test_service_callbacks"
-    "test_send_events"
-    "test_not_standalone_aid"
-    "test_start_stop_async_acc"
+    "test_connection_management"
+    "test_crypto_failure_closes_connection"
+    "test_empty_encrypted_data"
     "test_external_zeroconf"
-    "test_start_stop_sync_acc"
+    "test_get_accessories"
+    "test_get_characteristics"
+    "test_handle_set_handle_set"
+    "test_handle_snapshot_encrypted_non_existant_accessory"
+    "test_http_11_keep_alive"
+    "test_http10_close"
+    "test_mdns_service_info"
+    "test_mixing_service_char_callbacks_partial_failure"
+    "test_not_standalone_aid"
+    "test_persist"
+    "test_push_event"
+    "test_send_events"
+    "test_service_callbacks"
+    "test_set_characteristics_with_crypto"
+    "test_setup_endpoints"
+    "test_start"
+    "test_upgrade_to_encrypted"
+    "test_we_can_start_stop"
+    "test_xhm_uri"
   ];
 
   meta = with lib; {