Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchFromGitHub, pyserial, pyftdi, pyusb 2, pyopenssl, nose, isPy3k, pythonOlder, mock }: 3 4buildPythonPackage rec { 5 pname = "alarmdecoder"; 6 version = "1.13.9"; 7 disabled = pythonOlder "3.6"; 8 9 src = fetchFromGitHub { 10 owner = "nutechsoftware"; 11 repo = "alarmdecoder"; 12 rev = version; 13 sha256 = "0plr2h1qn4ryawbaxf29cfna4wailghhaqy1jcm9kxq6q7b9xqqy"; 14 }; 15 16 propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ]; 17 18 doCheck = !isPy3k; 19 checkInputs = [ nose mock ]; 20 pythonImportsCheck = [ "alarmdecoder" ]; 21 22 meta = with stdenv.lib; { 23 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 license = licenses.mit; 27 }; 28}