python3Packages.alarmdecoder: enable tests
This commit is contained in:
parent
1c265e6678
commit
d37dcf5a04
|
@ -1,5 +1,14 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pyserial, pyftdi, pyusb
|
{ lib
|
||||||
, pyopenssl, nose, isPy3k, pythonOlder, mock }:
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, mock
|
||||||
|
, pyftdi
|
||||||
|
, pyopenssl
|
||||||
|
, pyserial
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, pyusb
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "alarmdecoder";
|
pname = "alarmdecoder";
|
||||||
|
@ -13,16 +22,30 @@ buildPythonPackage rec {
|
||||||
sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w=";
|
sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ];
|
propagatedBuildInputs = [
|
||||||
|
pyftdi
|
||||||
|
pyopenssl
|
||||||
|
pyserial
|
||||||
|
pyusb
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Socket issue, https://github.com/nutechsoftware/alarmdecoder/issues/45
|
||||||
|
"test_ssl"
|
||||||
|
"test_ssl_exception"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = !isPy3k;
|
|
||||||
checkInputs = [ nose mock ];
|
|
||||||
pythonImportsCheck = [ "alarmdecoder" ];
|
pythonImportsCheck = [ "alarmdecoder" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices";
|
||||||
homepage = "https://github.com/nutechsoftware/alarmdecoder";
|
homepage = "https://github.com/nutechsoftware/alarmdecoder";
|
||||||
description =
|
|
||||||
"Python interface for the Alarm Decoder (AD2) family of alarm devices. (AD2USB, AD2SERIAL and AD2PI)";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue