nixpkgs/pkgs/development/python-modules/coapthon3/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

28 lines
732 B
Nix

{ buildPythonPackage, cachetools, fetchFromGitHub, isPy27, lib }:
buildPythonPackage rec {
pname = "CoAPthon3";
version = "1.0.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "Tanganelli";
repo = pname;
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 ];
};
}