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