python3Packages.aiocoap: 0.4b3 -> 0.4.1
This commit is contained in:
parent
b7b89cb6d4
commit
d762735804
|
@ -1,24 +1,42 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python
|
, pytestCheckHook
|
||||||
|
, pygments
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiocoap";
|
pname = "aiocoap";
|
||||||
version = "0.4b3";
|
version = "0.4.1";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chrysn";
|
owner = "chrysn";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1zjg475xgvi19rqg7jmfgy5nfabq50aph0231p9jba211ps7cmxw";
|
sha256 = "0k7ii2l3n139f8712ja6w3z73xiwlfsjgdc4k5c514ni2w6w2yjc";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [
|
||||||
${python.interpreter} -m aiocoap.cli.defaults
|
pygments
|
||||||
${python.interpreter} -m unittest discover -v
|
];
|
||||||
'';
|
|
||||||
|
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"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "aiocoap" ];
|
pythonImportsCheck = [ "aiocoap" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue