1{ lib, buildPythonPackage, fetchFromGitHub, cryptography, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "noiseprotocol"; 5 version = "0.3.1"; 6 7 src = fetchFromGitHub { 8 owner = "plizonczyk"; 9 repo = "noiseprotocol"; 10 rev = "v${version}"; 11 sha256 = "1mk0rqpjifdv3v1cjwkdnjbrfmzzjm9f3qqs1r8vii4j2wvhm6am"; 12 }; 13 14 propagatedBuildInputs = [ cryptography ]; 15 16 checkInputs = [ pytestCheckHook ]; 17 18 pythonImportsCheck = [ "noise" ]; 19 20 meta = with lib; { 21 description = "Noise Protocol Framework"; 22 homepage = "https://github.com/plizonczyk/noiseprotocol/"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ SuperSandro2000 ]; 25 }; 26}