depot/third_party/nixpkgs/pkgs/development/python-modules/coapthon3/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
748 B
Nix

{
buildPythonPackage,
cachetools,
fetchFromGitHub,
isPy27,
lib,
}:
buildPythonPackage rec {
pname = "coapthon3";
version = "1.0.2";
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 = with lib; {
inherit (src.meta) homepage;
description = "Python3 library to the CoAP protocol compliant with the RFC";
license = licenses.mit;
maintainers = with maintainers; [ urbas ];
};
}