1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pygments
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "aiocoap";
11 version = "0.4.7";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "chrysn";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-4iwoPfmIwk+PlWUp60aqA5qZgzyj34pnZHf9uH5UhnY=";
21 };
22
23 propagatedBuildInputs = [
24 pygments
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 disabledTestPaths = [
32 # Don't test the plugins
33 "tests/test_tls.py"
34 "tests/test_reverseproxy.py"
35 "tests/test_oscore_plugtest.py"
36 ];
37
38 disabledTests = [
39 # Communication is not properly mocked
40 "test_uri_parser"
41 ];
42
43 pythonImportsCheck = [
44 "aiocoap"
45 ];
46
47 meta = with lib; {
48 description = "Python CoAP library";
49 homepage = "https://aiocoap.readthedocs.io/";
50 changelog = "https://github.com/chrysn/aiocoap/blob/${version}/NEWS";
51 license = with licenses; [ mit ];
52 maintainers = with maintainers; [ fab ];
53 };
54}