-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195656 from mweinelt/python-bcrypt
- Loading branch information
Showing
4 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ 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 | ||
]; | ||
|
||
checkInputs = [ | ||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters