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