mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
45 lines
802 B
Nix
45 lines
802 B
Nix
{
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
hatchling,
|
|
hatch-vcs,
|
|
hatch-fancy-pypi-readme,
|
|
argon2-cffi-bindings,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "argon2-cffi";
|
|
version = "23.1.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
pname = "argon2_cffi";
|
|
inherit version;
|
|
hash = "sha256-h5w+eaJynOdo67fTbUYJ46eKTKLsOp8SKGygV+PQ2wg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
hatch-vcs
|
|
hatch-fancy-pypi-readme
|
|
];
|
|
|
|
propagatedBuildInputs = [ argon2-cffi-bindings ];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "argon2" ];
|
|
|
|
meta = with lib; {
|
|
description = "Secure Password Hashes for Python";
|
|
homepage = "https://argon2-cffi.readthedocs.io/";
|
|
license = licenses.mit;
|
|
};
|
|
}
|