Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ cffi 2, six 3, enum34 4, hypothesis 5, pytest 6, wheel 7, buildPythonPackage 8, fetchPypi 9, isPy3k 10, lib 11, stdenv 12, argon2-cffi-bindings 13}: 14 15buildPythonPackage rec { 16 pname = "argon2-cffi"; 17 version = "21.3.0"; 18 format = "flit"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "d384164d944190a7dd7ef22c6aa3ff197da12962bd04b17f64d4e93d934dba5b"; 23 }; 24 25 propagatedBuildInputs = [ cffi six argon2-cffi-bindings ] 26 ++ lib.optional (!isPy3k) enum34; 27 28 propagatedNativeBuildInputs = [ 29 argon2-cffi-bindings 30 cffi 31 ]; 32 33 ARGON2_CFFI_USE_SSE2 = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) "0"; 34 35 nativeCheckInputs = [ hypothesis pytest wheel ]; 36 checkPhase = '' 37 pytest tests 38 ''; 39 40 meta = with lib; { 41 description = "Secure Password Hashes for Python"; 42 homepage = "https://argon2-cffi.readthedocs.io/"; 43 license = licenses.mit; 44 }; 45}