2017-01-13 16:19:46 +01:00
|
|
|
{ stdenv, buildPythonPackage, isPyPy, fetchurl
|
2017-02-01 06:46:19 +01:00
|
|
|
, cffi, pycparser, mock, pytest, py, six }:
|
2017-01-13 16:19:46 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "bcrypt-${version}";
|
|
|
|
version = "3.1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/b/bcrypt/${name}.tar.gz";
|
|
|
|
sha256 = "1al54xafv1aharpb22yv5rjjc63fm60z3pn2shbiq48ah9f1fvil";
|
|
|
|
};
|
|
|
|
buildInputs = [ pycparser mock pytest py ];
|
2017-02-01 06:46:19 +01:00
|
|
|
propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
|
2017-01-13 16:19:46 +01: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/;
|
|
|
|
};
|
|
|
|
}
|