fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
819 B
Nix
44 lines
819 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
isPyPy,
|
|
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 = with lib; {
|
|
description = "Modern password hashing for your software and your servers";
|
|
homepage = "https://github.com/pyca/bcrypt/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
}
|