2018-06-23 15:27:58 +02:00
|
|
|
{ stdenv, buildPythonPackage, isPyPy, fetchPypi
|
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 {
|
2017-10-25 20:04:35 +02:00
|
|
|
version = "3.1.4";
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "bcrypt";
|
2017-01-13 16:19:46 +01:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 20:04:35 +02:00
|
|
|
sha256 = "67ed1a374c9155ec0840214ce804616de49c3df9c5bc66740687c1c9b1cd9e8d";
|
2017-01-13 16:19:46 +01:00
|
|
|
};
|
|
|
|
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/;
|
|
|
|
};
|
|
|
|
}
|