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 = "19.1.0";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "81548a27b919861040cb928a350733f4f9455dd67c7d1ba92eb5960a1d7f8b26";
20 };
21
22 propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34;
23 checkInputs = [ hypothesis pytest wheel ];
24 checkPhase = ''
25 pytest tests
26 '';
27
28 meta = with lib; {
29 description = "Secure Password Hashes for Python";
30 homepage = https://argon2-cffi.readthedocs.io/;
31 license = licenses.mit;
32 };
33}