1{ stdenv, buildPythonPackage, isPyPy, fetchPypi
2, cffi, pycparser, mock, pytest, py, six }:
3
4with stdenv.lib;
5
6buildPythonPackage rec {
7 version = "3.1.6";
8 pname = "bcrypt";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "44636759d222baa62806bbceb20e96f75a015a6381690d1bc2eda91c01ec02ea";
13 };
14 buildInputs = [ pycparser mock pytest py ];
15 propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
16
17 meta = {
18 maintainers = with maintainers; [ domenkozar ];
19 description = "Modern password hashing for your software and your servers";
20 license = licenses.asl20;
21 homepage = https://github.com/pyca/bcrypt/;
22 };
23}