nixpkgs/pkgs/development/python-modules/argon2_cffi/default.nix

31 lines
577 B
Nix
Raw Normal View History

{ cffi
2017-12-04 13:34:20 +00:00
, six
, hypothesis
, pytest
, wheel
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "argon2_cffi";
2018-01-07 08:00:11 +00:00
version = "18.1.0";
2017-12-04 13:34:20 +00:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2018-01-07 08:00:11 +00:00
sha256 = "7e4b75611b73f53012117ad21cdde7a17b32d1e99ff6799f22d827eb83a2a59b";
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/;
};
}