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