Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 652 B view raw
1{ cffi 2, six 3, enum34 4, hypothesis 5, pytest 6, wheel 7, buildPythonPackage 8, fetchPypi 9, isPy3k 10, lib 11}: 12 13buildPythonPackage rec { 14 pname = "argon2_cffi"; 15 version = "20.1.0"; 16 17 src = fetchPypi { 18 pname = "argon2-cffi"; 19 inherit version; 20 sha256 = "0zgr4mnnm0p4i99023safb0qb8cgvl202nly1rvylk2b7qnrn0nq"; 21 }; 22 23 propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34; 24 checkInputs = [ hypothesis pytest wheel ]; 25 checkPhase = '' 26 pytest tests 27 ''; 28 29 meta = with lib; { 30 description = "Secure Password Hashes for Python"; 31 homepage = "https://argon2-cffi.readthedocs.io/"; 32 license = licenses.mit; 33 }; 34}