2020-08-16 19:11:30 -07:00
|
|
|
{ stdenv, buildPythonPackage, isPyPy, fetchPypi, pythonOlder
|
2017-01-31 21:46:19 -08:00
|
|
|
, cffi, pycparser, mock, pytest, py, six }:
|
2017-01-13 07:19:46 -08:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-16 10:30:53 -07:00
|
|
|
version = "3.2.0";
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "bcrypt";
|
2020-08-16 19:11:30 -07:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-01-13 07:19:46 -08:00
|
|
|
|
2018-06-23 06:27:58 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 10:30:53 -07:00
|
|
|
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
|
2017-01-13 07:19:46 -08:00
|
|
|
};
|
|
|
|
buildInputs = [ pycparser mock pytest py ];
|
2017-01-31 21:46:19 -08:00
|
|
|
propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
|
2017-01-13 07:19:46 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
description = "Modern password hashing for your software and your servers";
|
|
|
|
license = licenses.asl20;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/pyca/bcrypt/";
|
2017-01-13 07:19:46 -08:00
|
|
|
};
|
|
|
|
}
|