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