1{ lib, buildPythonPackage, fetchFromGitHub 2, wheel, pytestCheckHook, pytest-runner, pythonAtLeast }: 3 4buildPythonPackage rec { 5 version = "0.18.4"; 6 pname = "bacpypes"; 7 disabled = pythonAtLeast "3.9"; 8 9 src = fetchFromGitHub { 10 owner = "JoelBender"; 11 repo = "bacpypes"; 12 rev = version; 13 sha256 = "1z5v0i7ms8na062wxd5ki43yy5z2d9cns0p4vdmkx2drwsbzlav2"; 14 }; 15 16 propagatedBuildInputs = [ wheel ]; 17 18 # Using pytes instead of setuptools check hook allows disabling specific tests 19 checkInputs = [ 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}