diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-16 22:25:26 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-16 22:25:26 +0100 |
commit | 08bda74d2a5af7f8480fb9ecbfb40d0449f1aece (patch) | |
tree | 4dd5d86b63337148f6a6dd0847c875a6a0f0fee6 /pkgs/development/python-modules/aiohomekit | |
parent | 4e9bd008f68cd30b4739b329318f790170e7292a (diff) | |
download | nixpkgs-08bda74d2a5af7f8480fb9ecbfb40d0449f1aece.tar nixpkgs-08bda74d2a5af7f8480fb9ecbfb40d0449f1aece.tar.gz nixpkgs-08bda74d2a5af7f8480fb9ecbfb40d0449f1aece.tar.bz2 nixpkgs-08bda74d2a5af7f8480fb9ecbfb40d0449f1aece.tar.lz nixpkgs-08bda74d2a5af7f8480fb9ecbfb40d0449f1aece.tar.xz nixpkgs-08bda74d2a5af7f8480fb9ecbfb40d0449f1aece.tar.zst nixpkgs-08bda74d2a5af7f8480fb9ecbfb40d0449f1aece.zip |
python3Packages.aiohomekit: init at 0.2.60
Diffstat (limited to 'pkgs/development/python-modules/aiohomekit')
-rw-r--r-- | pkgs/development/python-modules/aiohomekit/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiohomekit/default.nix b/pkgs/development/python-modules/aiohomekit/default.nix new file mode 100644 index 00000000000..5a51f66b16a --- /dev/null +++ b/pkgs/development/python-modules/aiohomekit/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, cryptography +, fetchFromGitHub +, poetry +, pytest-aiohttp +, pytestCheckHook +, pythonAtLeast +, zeroconf +}: + +buildPythonPackage rec { + pname = "aiohomekit"; + version = "0.2.60"; + format = "pyproject"; + disabled = pythonAtLeast "3.9"; + + src = fetchFromGitHub { + owner = "Jc2k"; + repo = pname; + rev = version; + sha256 = "03llk5i22hq163x568kz0qar5h0sda8f8cxbmgya6z2dcxv0a83p"; + }; + + nativeBuildInputs = [ poetry ]; + + propagatedBuildInputs = [ + cryptography + zeroconf + ]; + + checkInputs = [ + pytest-aiohttp + pytestCheckHook + ]; + + # Some test requires network access + disabledTests = [ + "test_remove_pairing" + "test_pair" + "test_add_and_remove_pairings" + ]; + + pythonImportsCheck = [ "aiohomekit" ]; + + meta = with lib; { + description = "Python module that implements the HomeKit protocol"; + longDescription = '' + This Python library implements the HomeKit protocol for controlling + Homekit accessories. + ''; + homepage = "https://github.com/Jc2k/aiohomekit"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} |