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-08-25 06:42:37 +01:00
|
|
|
version = "18.3.0";
|
2017-12-04 13:34:20 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 06:42:37 +01:00
|
|
|
sha256 = "003f588de43a817af6ecc1c06103fa0801de63849db3cb0f37576bb2da29043d";
|
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/;
|
|
|
|
};
|
|
|
|
}
|