2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, fetchFromGitHub
|
2019-11-20 08:50:38 +00:00
|
|
|
, wheel, pytestCheckHook, pytestrunner }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-10-16 03:40:35 +01:00
|
|
|
version = "0.18.1";
|
2019-11-20 08:50:38 +00:00
|
|
|
pname = "bacpypes";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JoelBender";
|
|
|
|
repo = "bacpypes";
|
2020-10-16 03:40:35 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1fxrh57z3fjl95db8jh71grkv5id8qk65g6k5jqcs9v3dgkg8jkl";
|
2019-11-20 08:50:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ wheel ];
|
|
|
|
|
|
|
|
# Using pytes instead of setuptools check hook allows disabling specific tests
|
|
|
|
checkInputs = [ pytestCheckHook pytestrunner ];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
disabledTests = [
|
|
|
|
# Test fails with a an error: AssertionError: assert 30 == 31
|
|
|
|
"test_recurring_task_5"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-20 08:50:38 +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 ];
|
|
|
|
};
|
|
|
|
}
|