1{ lib 2, buildPythonPackage 3, fetchPypi 4, libargon2 5, cffi 6, setuptools-scm 7}: 8 9buildPythonPackage rec { 10 pname = "argon2-cffi-bindings"; 11 version = "21.2.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "bb89ceffa6c791807d1305ceb77dbfacc5aa499891d2c55661c6459651fc39e3"; 16 }; 17 18 buildInputs = [ libargon2 ]; 19 20 nativeBuildInputs = [ 21 setuptools-scm 22 cffi 23 ]; 24 25 propagatedBuildInputs = [ 26 cffi 27 ]; 28 29 env.ARGON2_CFFI_USE_SYSTEM = 1; 30 31 # tarball doesn't include tests, but the upstream tests are minimal 32 doCheck = false; 33 pythonImportsCheck = [ "_argon2_cffi_bindings" ]; 34 35 meta = with lib; { 36 description = "Low-level CFFI bindings for Argon2"; 37 homepage = "https://github.com/hynek/argon2-cffi-bindings"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ jonringer ]; 40 }; 41}