Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pyftdi 6, pyopenssl 7, pyserial 8, pytestCheckHook 9, pythonOlder 10, pyusb 11}: 12 13buildPythonPackage rec { 14 pname = "alarmdecoder"; 15 version = "1.13.11"; 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "nutechsoftware"; 20 repo = "alarmdecoder"; 21 rev = version; 22 hash = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w="; 23 }; 24 25 propagatedBuildInputs = [ 26 pyftdi 27 pyopenssl 28 pyserial 29 pyusb 30 ]; 31 32 nativeCheckInputs = [ 33 mock 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # Socket issue, https://github.com/nutechsoftware/alarmdecoder/issues/45 39 "test_ssl" 40 "test_ssl_exception" 41 ]; 42 43 pythonImportsCheck = [ "alarmdecoder" ]; 44 45 meta = with lib; { 46 description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices"; 47 homepage = "https://github.com/nutechsoftware/alarmdecoder"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}