1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 openssl, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "scrypt"; 12 version = "0.9.4"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "holgern"; 17 repo = "py-scrypt"; 18 tag = "v${version}"; 19 hash = "sha256-4jVXaPD57RMe4ef1PVgZwPGAhEHL3RGlu2DSC6lGuR4="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 buildInputs = [ openssl ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "scrypt" ]; 29 30 meta = { 31 description = "Python bindings for the scrypt key derivation function"; 32 homepage = "https://github.com/holgern/py-scrypt"; 33 changelog = "https://github.com/holgern/py-scrypt/releases/tag/${src.tag}"; 34 license = lib.licenses.bsd2; 35 maintainers = with lib.maintainers; [ fab ]; 36 }; 37}