mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
1003 B
Nix
52 lines
1003 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pyftdi
|
|
, pyopenssl
|
|
, pyserial
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyusb
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "alarmdecoder";
|
|
version = "1.13.11";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nutechsoftware";
|
|
repo = "alarmdecoder";
|
|
rev = version;
|
|
sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|