2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
autoconf,
|
2024-09-19 14:19:46 +00:00
|
|
|
automake,
|
|
|
|
cython,
|
|
|
|
pkg-config,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dtlssocket";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.2.2";
|
|
|
|
pyproject = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-TnbXFXJuDEbcCeNdqbZxewY8I4mwbBcj3sw7o4tzh/Q=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
|
|
|
cython
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
2024-09-19 14:19:46 +00:00
|
|
|
automake
|
|
|
|
pkg-config
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# no tests on PyPI, no tags on GitLab
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "DTLSSocket" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cython wrapper for tinydtls with a Socket like interface";
|
|
|
|
homepage = "https://git.fslab.de/jkonra2m/tinydtls-cython";
|
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|