Merge pull request #311339 from fabaff/aiocoap-bump
python312Packages.aiocoap: 0.4.7 -> 0.4.8
This commit is contained in:
@@ -1,44 +1,37 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# optionals
|
||||
, cbor2
|
||||
, cbor-diag
|
||||
, cryptography
|
||||
, filelock
|
||||
, ge25519
|
||||
, dtlssocket
|
||||
, websockets
|
||||
, termcolor
|
||||
, pygments
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
cbor-diag,
|
||||
cbor2,
|
||||
cryptography,
|
||||
dtlssocket,
|
||||
fetchFromGitHub,
|
||||
filelock,
|
||||
ge25519,
|
||||
pygments,
|
||||
pytestCheckHook,
|
||||
pythonAtLeast,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
termcolor,
|
||||
websockets,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiocoap";
|
||||
version = "0.4.7";
|
||||
version = "0.4.8";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "chrysn";
|
||||
repo = pname;
|
||||
repo = "aiocoap";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-4iwoPfmIwk+PlWUp60aqA5qZgzyj34pnZHf9uH5UhnY=";
|
||||
hash = "sha256-jBRxorHr5/CgAR6WVXBUycZpJ6n1DYVFQk6kqVv8D1Q=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
oscore = [
|
||||
@@ -47,12 +40,8 @@ buildPythonPackage rec {
|
||||
filelock
|
||||
ge25519
|
||||
];
|
||||
tinydtls = [
|
||||
dtlssocket
|
||||
];
|
||||
ws = [
|
||||
websockets
|
||||
];
|
||||
tinydtls = [ dtlssocket ];
|
||||
ws = [ websockets ];
|
||||
prettyprint = [
|
||||
termcolor
|
||||
cbor2
|
||||
@@ -61,26 +50,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = lib.optionals (pythonAtLeast "3.12") [
|
||||
# https://github.com/chrysn/aiocoap/issues/339
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_big_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_empty_accept"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_error_resources"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_fast_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_js_accept"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_manualbig_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_nonexisting_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_replacing_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_root_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_slow_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_slowbig_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_spurious_resource"
|
||||
"--deselect=tests/test_server.py::TestServerTCP::test_unacceptable_accept"
|
||||
];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Don't test the plugins
|
||||
@@ -89,14 +59,29 @@ buildPythonPackage rec {
|
||||
"tests/test_oscore_plugtest.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Communication is not properly mocked
|
||||
"test_uri_parser"
|
||||
];
|
||||
disabledTests =
|
||||
[
|
||||
# Communication is not properly mocked
|
||||
"test_uri_parser"
|
||||
]
|
||||
++ lib.optionals (pythonAtLeast "3.12") [
|
||||
# https://github.com/chrysn/aiocoap/issues/339
|
||||
"TestServerTCP::test_big_resource"
|
||||
"TestServerTCP::test_empty_accept"
|
||||
"TestServerTCP::test_error_resources"
|
||||
"TestServerTCP::test_fast_resource"
|
||||
"TestServerTCP::test_js_accept"
|
||||
"TestServerTCP::test_manualbig_resource"
|
||||
"TestServerTCP::test_nonexisting_resource"
|
||||
"TestServerTCP::test_replacing_resource"
|
||||
"TestServerTCP::test_root_resource"
|
||||
"TestServerTCP::test_slow_resource"
|
||||
"TestServerTCP::test_slowbig_resource"
|
||||
"TestServerTCP::test_spurious_resource"
|
||||
"TestServerTCP::test_unacceptable_accept"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiocoap"
|
||||
];
|
||||
pythonImportsCheck = [ "aiocoap" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python CoAP library";
|
||||
|
||||
Reference in New Issue
Block a user