Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 libargon2, 6 cffi, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "argon2-cffi-bindings"; 12 version = "21.2.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "bb89ceffa6c791807d1305ceb77dbfacc5aa499891d2c55661c6459651fc39e3"; 18 }; 19 20 buildInputs = [ libargon2 ]; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 cffi 25 ]; 26 27 propagatedBuildInputs = [ cffi ]; 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 = [ ]; 40 }; 41}