567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
774 B
Nix
44 lines
774 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
cffi,
|
|
pytestCheckHook,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bcrypt";
|
|
version = "3.2.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QzxBDCF3BXcF2iqfLNAd0VdJOyp6wUyFk6FrPatra/s=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
cffi
|
|
];
|
|
|
|
propagatedNativeBuildInputs = [ cffi ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "bcrypt" ];
|
|
|
|
meta = {
|
|
description = "Modern password hashing for your software and your servers";
|
|
homepage = "https://github.com/pyca/bcrypt/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|