depot/third_party/nixpkgs/pkgs/development/python-modules/argon2-cffi-bindings/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
859 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
libargon2,
cffi,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "argon2-cffi-bindings";
version = "21.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "bb89ceffa6c791807d1305ceb77dbfacc5aa499891d2c55661c6459651fc39e3";
};
buildInputs = [ libargon2 ];
nativeBuildInputs = [
setuptools-scm
cffi
];
propagatedBuildInputs = [ cffi ];
env.ARGON2_CFFI_USE_SYSTEM = 1;
# tarball doesn't include tests, but the upstream tests are minimal
doCheck = false;
pythonImportsCheck = [ "_argon2_cffi_bindings" ];
meta = with lib; {
description = "Low-level CFFI bindings for Argon2";
homepage = "https://github.com/hynek/argon2-cffi-bindings";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}