lol

python3Packages.alarmdecoder: enable tests

+30 -7
+30 -7
pkgs/development/python-modules/alarmdecoder/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, pyserial, pyftdi, pyusb 2 - , pyopenssl, nose, isPy3k, pythonOlder, mock }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , mock 5 + , pyftdi 6 + , pyopenssl 7 + , pyserial 8 + , pytestCheckHook 9 + , pythonOlder 10 + , pyusb 11 + }: 3 12 4 13 buildPythonPackage rec { 5 14 pname = "alarmdecoder"; ··· 13 22 sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w="; 14 23 }; 15 24 16 - propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ]; 25 + propagatedBuildInputs = [ 26 + pyftdi 27 + pyopenssl 28 + pyserial 29 + pyusb 30 + ]; 31 + 32 + checkInputs = [ 33 + mock 34 + pytestCheckHook 35 + ]; 17 36 18 - doCheck = !isPy3k; 19 - checkInputs = [ nose mock ]; 37 + disabledTests = [ 38 + # Socket issue, https://github.com/nutechsoftware/alarmdecoder/issues/45 39 + "test_ssl" 40 + "test_ssl_exception" 41 + ]; 42 + 20 43 pythonImportsCheck = [ "alarmdecoder" ]; 21 44 22 45 meta = with lib; { 46 + description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices"; 23 47 homepage = "https://github.com/nutechsoftware/alarmdecoder"; 24 - description = 25 - "Python interface for the Alarm Decoder (AD2) family of alarm devices. (AD2USB, AD2SERIAL and AD2PI)"; 26 48 license = licenses.mit; 49 + maintainers = with maintainers; [ fab ]; 27 50 }; 28 51 }