tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.alarmdecoder: enable tests
Fabian Affolter
4 years ago
d37dcf5a
1c265e66
+30
-7
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
alarmdecoder
default.nix
+30
-7
pkgs/development/python-modules/alarmdecoder/default.nix
···
1
-
{ lib, buildPythonPackage, fetchFromGitHub, pyserial, pyftdi, pyusb
2
-
, pyopenssl, nose, isPy3k, pythonOlder, mock }:
0
0
0
0
0
0
0
0
0
3
4
buildPythonPackage rec {
5
pname = "alarmdecoder";
···
13
sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w=";
14
};
15
16
-
propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ];
0
0
0
0
0
0
0
0
0
0
17
18
-
doCheck = !isPy3k;
19
-
checkInputs = [ nose mock ];
0
0
0
0
20
pythonImportsCheck = [ "alarmdecoder" ];
21
22
meta = with lib; {
0
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;
0
27
};
28
}
···
1
+
{ lib
2
+
, buildPythonPackage
3
+
, fetchFromGitHub
4
+
, mock
5
+
, pyftdi
6
+
, pyopenssl
7
+
, pyserial
8
+
, pytestCheckHook
9
+
, pythonOlder
10
+
, pyusb
11
+
}:
12
13
buildPythonPackage rec {
14
pname = "alarmdecoder";
···
22
sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w=";
23
};
24
25
+
propagatedBuildInputs = [
26
+
pyftdi
27
+
pyopenssl
28
+
pyserial
29
+
pyusb
30
+
];
31
+
32
+
checkInputs = [
33
+
mock
34
+
pytestCheckHook
35
+
];
36
37
+
disabledTests = [
38
+
# Socket issue, https://github.com/nutechsoftware/alarmdecoder/issues/45
39
+
"test_ssl"
40
+
"test_ssl_exception"
41
+
];
42
+
43
pythonImportsCheck = [ "alarmdecoder" ];
44
45
meta = with lib; {
46
+
description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices";
47
homepage = "https://github.com/nutechsoftware/alarmdecoder";
0
0
48
license = licenses.mit;
49
+
maintainers = with maintainers; [ fab ];
50
};
51
}