1{ stdenv, buildPythonPackage, fetchPypi, fetchFromGitHub
2, wheel, pytestCheckHook, pytestrunner }:
3
4buildPythonPackage rec {
5 version = "0.18.0";
6 pname = "bacpypes";
7
8 src = fetchFromGitHub {
9 owner = "JoelBender";
10 repo = "bacpypes";
11 rev = "${version}";
12 sha256 = "1nz0qi46z6n455mw2ppxgz091qh0irizlxpvkx7iw1l7f6mmgj0x";
13 };
14
15 propagatedBuildInputs = [ wheel ];
16
17 # Using pytes instead of setuptools check hook allows disabling specific tests
18 checkInputs = [ pytestCheckHook pytestrunner ];
19 dontUseSetuptoolsCheck = true;
20 disabledTests = [
21 # Test fails with a an error: AssertionError: assert 30 == 31
22 "test_recurring_task_5"
23 ];
24
25 meta = with stdenv.lib; {
26 homepage = "https://github.com/JoelBender/bacpypes";
27 description = "BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces.";
28 license = licenses.mit;
29 maintainers = with maintainers; [ bachp ];
30 };
31}