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