diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2021-01-29 16:39:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 16:39:35 +0100 |
commit | b1280aaa3e330f1662e31eda2d865403b56e3844 (patch) | |
tree | 92a6bf4ee12cf4c53201b458d27db8bf18da0718 | |
parent | 3eae73d862707b31fc1996ffdad2314cd5771314 (diff) | |
parent | cd6aa10b7518901daa9f238cd2e7940ca70d383d (diff) |
Merge pull request #109482 from fabaff/aiocoap
python3Packages.aiocoap: init at 0.4b3
-rw-r--r-- | pkgs/development/python-modules/aiocoap/default.nix | 31 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiocoap/default.nix b/pkgs/development/python-modules/aiocoap/default.nix new file mode 100644 index 000000000000..dd74a21bf9b8 --- /dev/null +++ b/pkgs/development/python-modules/aiocoap/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +}: + +buildPythonPackage rec { + pname = "aiocoap"; + version = "0.4b3"; + + src = fetchFromGitHub { + owner = "chrysn"; + repo = pname; + rev = version; + sha256 = "1zjg475xgvi19rqg7jmfgy5nfabq50aph0231p9jba211ps7cmxw"; + }; + + checkPhase = '' + ${python.interpreter} -m aiocoap.cli.defaults + ${python.interpreter} -m unittest discover -v + ''; + + pythonImportsCheck = [ "aiocoap" ]; + + meta = with lib; { + description = "Python CoAP library"; + homepage = "https://aiocoap.readthedocs.io/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1dbe9c81cbfb..3beae2869624 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -204,6 +204,8 @@ in { aioamqp = callPackage ../development/python-modules/aioamqp { }; + aiocoap = callPackage ../development/python-modules/aiocoap { }; + aioconsole = callPackage ../development/python-modules/aioconsole { }; aiocontextvars = callPackage ../development/python-modules/aiocontextvars { }; |