2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-07-03 03:11:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pygments
|
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiocoap";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "0.4.5";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrysn";
|
|
|
|
repo = pname;
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-t2yfWWfkJmOr14XdLsIV48HMgVRaEnUO4IG2jQHbKWA=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Don't test the plugins
|
|
|
|
"tests/test_tls.py"
|
|
|
|
"tests/test_reverseproxy.py"
|
|
|
|
"tests/test_oscore_plugtest.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Communication is not properly mocked
|
|
|
|
"test_uri_parser"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiocoap"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python CoAP library";
|
|
|
|
homepage = "https://aiocoap.readthedocs.io/";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/chrysn/aiocoap/blob/${version}/NEWS";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|