1{ stdenv, buildPythonPackage, isPyPy, fetchurl
2, cffi, pycparser, mock, pytest, py, six }:
3
4with stdenv.lib;
5
6buildPythonPackage rec {
7 version = "3.1.4";
8 pname = "bcrypt";
9 name = "${pname}-${version}";
10
11 src = fetchurl {
12 url = "mirror://pypi/b/bcrypt/${name}.tar.gz";
13 sha256 = "67ed1a374c9155ec0840214ce804616de49c3df9c5bc66740687c1c9b1cd9e8d";
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}