Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 47 lines 1.2 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, curve25519-donna, ed25519 2, cryptography, ecdsa, zeroconf, pytest }: 3 4buildPythonPackage rec { 5 pname = "HAP-python"; 6 version = "2.9.2"; 7 8 # pypi package does not include tests 9 src = fetchFromGitHub { 10 owner = "ikalchev"; 11 repo = pname; 12 rev = "v${version}"; 13 sha256 = "1d2ji2psla7jq3f9grb0l665nf8qsy2rlbkr2qg1d1a7mvf80x7k"; 14 }; 15 16 disabled = !isPy3k; 17 18 propagatedBuildInputs = [ 19 curve25519-donna 20 ed25519 21 cryptography 22 ecdsa 23 zeroconf 24 ]; 25 26 checkInputs = [ pytest ]; 27 28 #disable tests needing network 29 checkPhase = '' 30 pytest -k 'not test_persist \ 31 and not test_setup_endpoints \ 32 and not test_auto_add_aid_mac \ 33 and not test_service_callbacks \ 34 and not test_send_events \ 35 and not test_not_standalone_aid \ 36 and not test_start_stop_async_acc \ 37 and not test_external_zeroconf \ 38 and not test_start_stop_sync_acc' 39 ''; 40 41 meta = with lib; { 42 homepage = "https://github.com/ikalchev/HAP-python"; 43 description = "HomeKit Accessory Protocol implementation in python"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ oro ]; 46 }; 47}