nixpkgs/pkgs/development/python-modules/argon2-cffi-bindings/default.nix
Ben Wolsieffer b55e27cc5c python3Packages.argon2-cffi-bindings: use system libargon2
argon2-cffi-bindings uses a vendored copy of libargon2 by default, but can
be configured to use a system installation. This reduces the output size
avoids issues with the build system mistakenly trying to use SSE2 on
non-x86 platforms when cross-compiling.
2023-09-25 21:28:09 -04:00

41 lines
832 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, libargon2
, cffi
, setuptools-scm
}:
buildPythonPackage rec {
pname = "argon2-cffi-bindings";
version = "21.2.0";
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 ];
};
}