2018-07-21 01:44:44 +01:00
|
|
|
{ cffi
|
2017-12-04 13:34:20 +00:00
|
|
|
, six
|
|
|
|
, hypothesis
|
|
|
|
, pytest
|
|
|
|
, wheel
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "argon2_cffi";
|
2018-01-07 08:00:11 +00:00
|
|
|
version = "18.1.0";
|
2017-12-04 13:34:20 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-07 08:00:11 +00:00
|
|
|
sha256 = "7e4b75611b73f53012117ad21cdde7a17b32d1e99ff6799f22d827eb83a2a59b";
|
2017-12-04 13:34:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cffi six ];
|
|
|
|
checkInputs = [ hypothesis pytest wheel ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Secure Password Hashes for Python";
|
|
|
|
homepage = https://argon2-cffi.readthedocs.io/;
|
|
|
|
};
|
|
|
|
}
|