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