2018-07-20 17:44:44 -07:00
|
|
|
{ cffi
|
2017-12-04 05:34:20 -08:00
|
|
|
, six
|
2019-03-02 01:47:45 -08:00
|
|
|
, enum34
|
2017-12-04 05:34:20 -08:00
|
|
|
, hypothesis
|
|
|
|
, pytest
|
|
|
|
, wheel
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-02 01:47:45 -08:00
|
|
|
, isPy3k
|
|
|
|
, lib
|
2017-12-04 05:34:20 -08:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "argon2_cffi";
|
2020-10-07 02:27:10 -07:00
|
|
|
version = "20.1.0";
|
2017-12-04 05:34:20 -08:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2019-12-21 17:16:05 -08:00
|
|
|
pname = "argon2-cffi";
|
|
|
|
inherit version;
|
2020-10-07 02:27:10 -07:00
|
|
|
sha256 = "0zgr4mnnm0p4i99023safb0qb8cgvl202nly1rvylk2b7qnrn0nq";
|
2017-12-04 05:34:20 -08:00
|
|
|
};
|
|
|
|
|
2019-03-02 01:47:45 -08:00
|
|
|
propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34;
|
2017-12-04 05:34:20 -08:00
|
|
|
checkInputs = [ hypothesis pytest wheel ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
2019-03-02 01:47:45 -08:00
|
|
|
meta = with lib; {
|
2017-12-04 05:34:20 -08:00
|
|
|
description = "Secure Password Hashes for Python";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://argon2-cffi.readthedocs.io/";
|
2019-03-02 01:47:45 -08:00
|
|
|
license = licenses.mit;
|
2017-12-04 05:34:20 -08:00
|
|
|
};
|
|
|
|
}
|