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
1
-
{ lib, buildPythonPackage, fetchFromGitHub, pyserial, pyftdi, pyusb
2
2
-
, pyopenssl, nose, isPy3k, pythonOlder, mock }:
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, mock
5
5
+
, pyftdi
6
6
+
, pyopenssl
7
7
+
, pyserial
8
8
+
, pytestCheckHook
9
9
+
, pythonOlder
10
10
+
, pyusb
11
11
+
}:
3
12
4
13
buildPythonPackage rec {
5
14
pname = "alarmdecoder";
···
13
22
sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w=";
14
23
};
15
24
16
16
-
propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ];
25
25
+
propagatedBuildInputs = [
26
26
+
pyftdi
27
27
+
pyopenssl
28
28
+
pyserial
29
29
+
pyusb
30
30
+
];
31
31
+
32
32
+
checkInputs = [
33
33
+
mock
34
34
+
pytestCheckHook
35
35
+
];
17
36
18
18
-
doCheck = !isPy3k;
19
19
-
checkInputs = [ nose mock ];
37
37
+
disabledTests = [
38
38
+
# Socket issue, https://github.com/nutechsoftware/alarmdecoder/issues/45
39
39
+
"test_ssl"
40
40
+
"test_ssl_exception"
41
41
+
];
42
42
+
20
43
pythonImportsCheck = [ "alarmdecoder" ];
21
44
22
45
meta = with lib; {
46
46
+
description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices";
23
47
homepage = "https://github.com/nutechsoftware/alarmdecoder";
24
24
-
description =
25
25
-
"Python interface for the Alarm Decoder (AD2) family of alarm devices. (AD2USB, AD2SERIAL and AD2PI)";
26
48
license = licenses.mit;
49
49
+
maintainers = with maintainers; [ fab ];
27
50
};
28
51
}