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.2.0";
16
17 src = fetchPypi {
18 pname = "argon2-cffi";
19 inherit version;
20 sha256 = "ffaa623eea77b497ffbdd1a51e941b33d3bf552c60f14dbee274c4070677bda3";
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}