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

32 lines
583 B
Nix
Raw Normal View History

2017-12-04 14:34:20 +01:00
{ lib
, cffi
, six
, hypothesis
, pytest
, wheel
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "argon2_cffi";
2018-01-07 09:00:11 +01:00
version = "18.1.0";
2017-12-04 14:34:20 +01:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2018-01-07 09:00:11 +01:00
sha256 = "7e4b75611b73f53012117ad21cdde7a17b32d1e99ff6799f22d827eb83a2a59b";
2017-12-04 14:34:20 +01:00
};
propagatedBuildInputs = [ cffi six ];
checkInputs = [ hypothesis pytest wheel ];
checkPhase = ''
pytest tests
'';
meta = {
description = "Secure Password Hashes for Python";
homepage = https://argon2-cffi.readthedocs.io/;
};
}