31 lines
577 B
Nix
Raw Normal View History

{ cffi
2017-12-04 14:34:20 +01:00
, six
, hypothesis
, pytest
, wheel
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "argon2_cffi";
2019-02-14 08:37:10 +01:00
version = "19.1.0";
2017-12-04 14:34:20 +01:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2019-02-14 08:37:10 +01:00
sha256 = "81548a27b919861040cb928a350733f4f9455dd67c7d1ba92eb5960a1d7f8b26";
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/;
};
}