1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "noiseprotocol"; 13 version = "0.3.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "plizonczyk"; 20 repo = "noiseprotocol"; 21 tag = "v${version}"; 22 hash = "sha256-VZkKNxeSxLhRDhrj4VKV/1eXl7RtcsnCHru5KC/OYNY="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ cryptography ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "noise" ]; 32 33 meta = with lib; { 34 description = "Noise Protocol Framework"; 35 homepage = "https://github.com/plizonczyk/noiseprotocol/"; 36 changelog = "https://github.com/plizonczyk/noiseprotocol/blob/v${version}/CHANGELOG.rst"; 37 license = licenses.mit; 38 maintainers = [ ]; 39 }; 40}