git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.HAP-python: 3.0.0 -> 3.1.0

Convert tests to pyTestCheckHook.

commit77cbb1af0999696eb8e54252b035978a8ee43633 authorMartin Weinelt <hexa@darmstadt.ccc.de> dateWed 30 Dec 2020, 16:13 (6 years ago) parentf399eff
1 file changed+16−16
pkgs/development/python-modules/HAP-python/default.nix+16−16
pkgs/development/python-modules/HAP-python/default.nix+16−16
@@ -1,16 +1,16 @@
11{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, curve25519-donna, ed25519
2−, cryptography, ecdsa, zeroconf, pytest }:
2+, cryptography, ecdsa, zeroconf, pytestCheckHook }:
33
44buildPythonPackage rec {
55 pname = "HAP-python";
6− version = "3.0.0";
6+ version = "3.1.0";
77
88 # pypi package does not include tests
99 src = fetchFromGitHub {
1010 owner = "ikalchev";
1111 repo = pname;
1212 rev = "v${version}";
13− sha256 = "07s1kjm9cz4m4ksj506la1ks3dq2b5mk412rjj9rpj98b0mxrr84";
13+ sha256 = "1qg38lfjby2xfm09chzc40a7i3b84kgyfs7g4xq8f5m8s39hg6d7";
1414 };
1515
1616 disabled = !isPy3k;
@@ -23,20 +23,20 @@ buildPythonPackage rec {
2323 zeroconf
2424 ];
2525
26− checkInputs = [ pytest ];
26+ checkInputs = [ pytestCheckHook ];
2727
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− '';
28+ disabledTests = [
29+ #disable tests needing network
30+ "test_persist"
31+ "test_setup_endpoints"
32+ "test_auto_add_aid_mac"
33+ "test_service_callbacks"
34+ "test_send_events"
35+ "test_not_standalone_aid"
36+ "test_start_stop_async_acc"
37+ "test_external_zeroconf"
38+ "test_start_stop_sync_acc"
39+ ];
4040
4141 meta = with lib; {
4242 homepage = "https://github.com/ikalchev/HAP-python";