2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2021-07-24 12:14:16 +00:00
|
|
|
, wheel, pytestCheckHook, pytest-runner, pythonAtLeast }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "0.18.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bacpypes";
|
2021-05-28 09:39:13 +00:00
|
|
|
disabled = pythonAtLeast "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JoelBender";
|
|
|
|
repo = "bacpypes";
|
2020-10-16 20:44:37 +00:00
|
|
|
rev = version;
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "1z5v0i7ms8na062wxd5ki43yy5z2d9cns0p4vdmkx2drwsbzlav2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ wheel ];
|
|
|
|
|
|
|
|
# Using pytes instead of setuptools check hook allows disabling specific tests
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-runner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
disabledTests = [
|
|
|
|
# Test fails with a an error: AssertionError: assert 30 == 31
|
|
|
|
"test_recurring_task_5"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/JoelBender/bacpypes";
|
|
|
|
description = "BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bachp ];
|
|
|
|
};
|
|
|
|
}
|