summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/alarmdecoder
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-06-01 09:39:26 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-06-01 09:39:26 +0200
commitd37dcf5a0438eb58d69c49bb2dc2dc375462d461 (patch)
tree92c607122fcfd0762f009b3fd9bfb602bd7cfafe /pkgs/development/python-modules/alarmdecoder
parentpython3Packages.alarmdecoder: 1.13.10 -> 1.13.11 (diff)
downloadnixpkgs-d37dcf5a0438eb58d69c49bb2dc2dc375462d461.tar.gz
python3Packages.alarmdecoder: enable tests
Diffstat (limited to 'pkgs/development/python-modules/alarmdecoder')
-rw-r--r--pkgs/development/python-modules/alarmdecoder/default.nix37
1 files changed, 30 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/alarmdecoder/default.nix b/pkgs/development/python-modules/alarmdecoder/default.nix
index 3aed60a0403d..23b4173f8da8 100644
--- a/pkgs/development/python-modules/alarmdecoder/default.nix
+++ b/pkgs/development/python-modules/alarmdecoder/default.nix
@@ -1,5 +1,14 @@
-{ lib, buildPythonPackage, fetchFromGitHub, pyserial, pyftdi, pyusb
-, pyopenssl, nose, isPy3k, pythonOlder, mock }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, mock
+, pyftdi
+, pyopenssl
+, pyserial
+, pytestCheckHook
+, pythonOlder
+, pyusb
+}:
buildPythonPackage rec {
pname = "alarmdecoder";
@@ -13,16 +22,30 @@ buildPythonPackage rec {
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" ];
meta = with lib; {
+ description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices";
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;
+ maintainers = with maintainers; [ fab ];
};
}