2017-01-13 15:19:46 +00:00
|
|
|
{ stdenv, buildPythonPackage, isPyPy, fetchurl
|
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 {
|
2017-05-27 13:24:47 +01:00
|
|
|
version = "3.1.3";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "bcrypt";
|
|
|
|
name = "${pname}-${version}";
|
2017-01-13 15:19:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/b/bcrypt/${name}.tar.gz";
|
2017-05-27 13:24:47 +01:00
|
|
|
sha256 = "6645c8d0ad845308de3eb9be98b6fd22a46ec5412bfc664a423e411cdd8f5488";
|
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/;
|
|
|
|
};
|
|
|
|
}
|