567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
771 B
Nix
35 lines
771 B
Nix
{
|
|
buildPythonPackage,
|
|
cachetools,
|
|
fetchFromGitHub,
|
|
isPy27,
|
|
lib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coapthon3";
|
|
version = "1.0.2";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tanganelli";
|
|
repo = "CoAPthon3";
|
|
rev = version;
|
|
hash = "sha256-9QApoPUu3XFZY/lgjAsf5r2StFiRtUd1UXWDrzYUh6w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cachetools ];
|
|
|
|
# tests take in the order of 10 minutes to execute and sometimes hang forever on tear-down
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "coapthon" ];
|
|
|
|
meta = {
|
|
inherit (src.meta) homepage;
|
|
description = "Python3 library to the CoAP protocol compliant with the RFC";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ urbas ];
|
|
};
|
|
}
|