Merge pull request #109482 from fabaff/aiocoap

python3Packages.aiocoap: init at 0.4b3
This commit is contained in:
Martin Weinelt 2021-01-29 16:39:35 +01:00 committed by GitHub
commit b1280aaa3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };