2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, isPyPy, fetchPypi, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, cffi, pycparser, mock, pytest, py, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "3.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bcrypt";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ pycparser mock pytest py ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [ six ] ++ lib.optional (!isPyPy) cffi;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
description = "Modern password hashing for your software and your servers";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/pyca/bcrypt/";
|
|
|
|
};
|
|
|
|
}
|