Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, buildPythonPackage, fetchFromGitHub, mock, pyftdi, pyopenssl, pyserial, pytestCheckHook, pythonOlder, pyusb, setuptools-scm,}:
buildPythonPackage rec { pname = "alarmdecoder"; version = "1.13.14"; pyproject = true;
src = fetchFromGitHub { owner = "nutechsoftware"; repo = "alarmdecoder"; rev = version; hash = "sha256-qjn6OY8N1Miuou2aCHGhAQJtOEH1kE6XM8k1TPAibGU="; };
postPatch = '' substituteInPlace test/test_{ad2,devices,messages}.py \ --replace-fail assertEquals assertEqual '';
build-system = [ setuptools-scm ];
dependencies = [ pyftdi pyopenssl pyserial pyusb ];
nativeCheckInputs = [ mock pytestCheckHook ];
disabledTests = [ # Socket issue, https://github.com/nutechsoftware/alarmdecoder/issues/45 "test_ssl" "test_ssl_exception" ];
pythonImportsCheck = [ "alarmdecoder" ];
meta = with lib; { description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices"; homepage = "https://github.com/nutechsoftware/alarmdecoder"; changelog = "https://github.com/nutechsoftware/alarmdecoder/releases/tag/${src.rev}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}