Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 19ecaba428f6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2467e22bdfb8
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Apr 10, 2020

  1. pythonPackages.HAP-python: init at 2.7.0

    Oro authored and Jon committed Apr 10, 2020
    Copy the full SHA
    2467e22 View commit details
Showing with 49 additions and 1 deletion.
  1. +46 −0 pkgs/development/python-modules/HAP-python/default.nix
  2. +1 −1 pkgs/servers/home-assistant/component-packages.nix
  3. +2 −0 pkgs/top-level/python-packages.nix
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/HAP-python/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, curve25519-donna, ed25519
, cryptography, ecdsa, zeroconf, pytest }:

buildPythonPackage rec {
pname = "HAP-python";
version = "2.8.1";

# pypi package does not include tests
src = fetchFromGitHub {
owner = "ikalchev";
repo = pname;
rev = "v${version}";
sha256 = "182s3dk7y29wql9bazlnw840xqgsbr44ad72m668qgxd82jl6y9c";
};

disabled = !isPy3k;

propagatedBuildInputs = [
curve25519-donna
ed25519
cryptography
ecdsa
zeroconf
];

checkInputs = [ pytest ];

#disable tests needing network
checkPhase = ''
pytest -k 'not test_persist \
and not test_setup_endpoints \
and not test_auto_add_aid_mac \
and not test_service_callbacks \
and not test_send_events \
and not test_not_standalone_aid \
and not test_start_stop_async_acc \
and not test_start_stop_sync_acc'
'';

meta = with lib; {
homepage = "https://github.com/ikalchev/HAP-python";
description = "HomeKit Accessory Protocol implementation in python";
license = licenses.asl20;
maintainers = with maintainers; [ oro ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
@@ -327,7 +327,7 @@
"hive" = ps: with ps; [ ]; # missing inputs: pyhiveapi
"hlk_sw16" = ps: with ps; [ ]; # missing inputs: hlk-sw16
"homeassistant" = ps: with ps; [ ];
"homekit" = ps: with ps; [ ]; # missing inputs: HAP-python
"homekit" = ps: with ps; [ HAP-python];
"homekit_controller" = ps: with ps; [ ]; # missing inputs: aiohomekit[IP]
"homematic" = ps: with ps; [ pyhomematic];
"homematicip_cloud" = ps: with ps; [ ]; # missing inputs: homematicip
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -795,6 +795,8 @@ in {

handout = callPackage ../development/python-modules/handout { };

HAP-python = callPackage ../development/python-modules/HAP-python { };

helper = callPackage ../development/python-modules/helper { };

hdmedians = callPackage ../development/python-modules/hdmedians { };