python311Packages.aiocoap: pep517 build, optionals

This commit is contained in:
Martin Weinelt 2024-02-18 12:53:50 +01:00
parent 6987e8ce91
commit 3ed18f4b10
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,15 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pygments
, pythonAtLeast
, pythonOlder
# build-system
, setuptools
# optionals
, cbor2
, cbor-diag
, cryptography
, filelock
, ge25519
, dtlssocket
, websockets
, termcolor
, pygments
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiocoap";
version = "0.4.7";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -20,10 +36,31 @@ buildPythonPackage rec {
hash = "sha256-4iwoPfmIwk+PlWUp60aqA5qZgzyj34pnZHf9uH5UhnY=";
};
propagatedBuildInputs = [
pygments
nativeBuildInputs = [
setuptools
];
passthru.optional-dependencies = {
oscore = [
cbor2
cryptography
filelock
ge25519
];
tinydtls = [
dtlssocket
];
ws = [
websockets
];
prettyprint = [
termcolor
cbor2
pygments
cbor-diag
];
};
nativeCheckInputs = [
pytestCheckHook
];