mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
32 lines
652 B
Nix
32 lines
652 B
Nix
{ 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 ];
|
|
};
|
|
}
|