35 lines
652 B
Nix
Raw Normal View History

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