2018-06-23 14:27:58 +01:00
|
|
|
{ stdenv, buildPythonPackage, isPyPy, fetchPypi
|
2017-02-01 05:46:19 +00:00
|
|
|
, cffi, pycparser, mock, pytest, py, six }:
|
2017-01-13 15:19:46 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-01-17 15:12:52 +00:00
|
|
|
version = "3.1.6";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "bcrypt";
|
2017-01-13 15:19:46 +00:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-17 15:12:52 +00:00
|
|
|
sha256 = "44636759d222baa62806bbceb20e96f75a015a6381690d1bc2eda91c01ec02ea";
|
2017-01-13 15:19:46 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ pycparser mock pytest py ];
|
2017-02-01 05:46:19 +00:00
|
|
|
propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
|
2017-01-13 15:19:46 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
description = "Modern password hashing for your software and your servers";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = https://github.com/pyca/bcrypt/;
|
|
|
|
};
|
|
|
|
}
|