2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, autoconf
|
|
|
|
, cython
|
2023-03-08 16:32:21 +00:00
|
|
|
, setuptools
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dtlssocket";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "0.1.14";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "DTLSSocket";
|
|
|
|
inherit version;
|
2023-03-08 16:32:21 +00:00
|
|
|
hash = "sha256-BLNfdKDKUvc+BJnhLqx7VzJg0opvrdaXhNLCigLH02k=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
cython
|
2023-03-08 16:32:21 +00:00
|
|
|
setuptools
|
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 ];
|
|
|
|
};
|
|
|
|
}
|