You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
885 B
46 lines
885 B
6 years ago
|
{ cffi
|
||
7 years ago
|
, six
|
||
5 years ago
|
, enum34
|
||
7 years ago
|
, hypothesis
|
||
|
, pytest
|
||
|
, wheel
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
5 years ago
|
, isPy3k
|
||
|
, lib
|
||
3 years ago
|
, stdenv
|
||
2 years ago
|
, argon2-cffi-bindings
|
||
7 years ago
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
2 years ago
|
pname = "argon2-cffi";
|
||
2 years ago
|
version = "21.3.0";
|
||
2 years ago
|
format = "flit";
|
||
7 years ago
|
|
||
|
src = fetchPypi {
|
||
2 years ago
|
inherit pname version;
|
||
2 years ago
|
sha256 = "d384164d944190a7dd7ef22c6aa3ff197da12962bd04b17f64d4e93d934dba5b";
|
||
7 years ago
|
};
|
||
|
|
||
2 years ago
|
propagatedBuildInputs = [ cffi six argon2-cffi-bindings ]
|
||
|
++ lib.optional (!isPy3k) enum34;
|
||
3 years ago
|
|
||
2 years ago
|
propagatedNativeBuildInputs = [
|
||
|
argon2-cffi-bindings
|
||
|
cffi
|
||
|
];
|
||
3 years ago
|
|
||
|
ARGON2_CFFI_USE_SSE2 = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) "0";
|
||
|
|
||
7 years ago
|
checkInputs = [ hypothesis pytest wheel ];
|
||
|
checkPhase = ''
|
||
|
pytest tests
|
||
|
'';
|
||
|
|
||
5 years ago
|
meta = with lib; {
|
||
7 years ago
|
description = "Secure Password Hashes for Python";
|
||
4 years ago
|
homepage = "https://argon2-cffi.readthedocs.io/";
|
||
5 years ago
|
license = licenses.mit;
|
||
7 years ago
|
};
|
||
|
}
|