diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-01 12:23:40 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-06-11 11:44:36 +0200 |
commit | 5113edee2343130ba96c101a9389e3bbde027c73 (patch) | |
tree | 6a8704ecd35fa57b15245ffbefd6640eb95313ec /pkgs/development/python-modules/hap-python | |
parent | 8aff25d21de76fd3f8b1403e907c41df82eb32c9 (diff) | |
download | nixpkgs-5113edee2343130ba96c101a9389e3bbde027c73.tar nixpkgs-5113edee2343130ba96c101a9389e3bbde027c73.tar.gz nixpkgs-5113edee2343130ba96c101a9389e3bbde027c73.tar.bz2 nixpkgs-5113edee2343130ba96c101a9389e3bbde027c73.tar.lz nixpkgs-5113edee2343130ba96c101a9389e3bbde027c73.tar.xz nixpkgs-5113edee2343130ba96c101a9389e3bbde027c73.tar.zst nixpkgs-5113edee2343130ba96c101a9389e3bbde027c73.zip |
python3Packages.hap-python: 3.4.1 -> 3.5.0
Diffstat (limited to 'pkgs/development/python-modules/hap-python')
-rw-r--r-- | pkgs/development/python-modules/hap-python/default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hap-python/default.nix b/pkgs/development/python-modules/hap-python/default.nix new file mode 100644 index 00000000000..946f0039a0a --- /dev/null +++ b/pkgs/development/python-modules/hap-python/default.nix @@ -0,0 +1,70 @@ +{ lib +, buildPythonPackage +, base36 +, cryptography +, curve25519-donna +, ecdsa +, ed25519 +, fetchFromGitHub +, h11 +, pyqrcode +, pytest-asyncio +, pytest-timeout +, pytestCheckHook +, pythonOlder +, zeroconf +}: + +buildPythonPackage rec { + pname = "hap-python"; + version = "3.5.0"; + disabled = pythonOlder "3.5"; + + # pypi package does not include tests + src = fetchFromGitHub { + owner = "ikalchev"; + repo = "HAP-python"; + rev = "v${version}"; + sha256 = "1vzlfx0gpidl0rzv4z94pziwm6rj4lrilly5pykgq984y708pcqf"; + }; + + propagatedBuildInputs = [ + base36 + cryptography + curve25519-donna + ecdsa + ed25519 + h11 + pyqrcode + zeroconf + ]; + + checkInputs = [ + pytest-asyncio + pytest-timeout + pytestCheckHook + ]; + + # Disable tests requiring network access + disabledTestPaths = [ + "tests/test_accessory_driver.py" + "tests/test_hap_handler.py" + "tests/test_hap_protocol.py" + ]; + + disabledTests = [ + "test_persist_and_load" + "test_we_can_connect" + "test_idle_connection_cleanup" + "test_we_can_start_stop" + "test_push_event" + "test_bridge_run_stop" + ]; + + meta = with lib; { + homepage = "https://github.com/ikalchev/HAP-python"; + description = "HomeKit Accessory Protocol implementation in python"; + license = licenses.asl20; + maintainers = with maintainers; [ oro ]; + }; +} |