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