1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 autoconf,
6 automake,
7 cython,
8 pkg-config,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "dtlssocket";
14 version = "0.2.3";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-8Gy+Mt+FYtu8y+J0qvJ9J3PoSSqGxBwzSzoKcKUAN88=";
20 };
21
22 build-system = [
23 cython
24 setuptools
25 ];
26
27 nativeBuildInputs = [
28 autoconf
29 automake
30 pkg-config
31 ];
32
33 # no tests on PyPI, no tags on GitLab
34 doCheck = false;
35
36 pythonImportsCheck = [ "DTLSSocket" ];
37
38 meta = with lib; {
39 description = "Cython wrapper for tinydtls with a Socket like interface";
40 homepage = "https://git.fslab.de/jkonra2m/tinydtls-cython";
41 license = licenses.epl10;
42 maintainers = with maintainers; [ dotlambda ];
43 };
44}