2018-06-23 06:27:58 -07:00
|
|
|
{ stdenv, buildPythonPackage, isPyPy, fetchPypi
|
2017-01-31 21:46:19 -08:00
|
|
|
, cffi, pycparser, mock, pytest, py, six }:
|
2017-01-13 07:19:46 -08:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-07-19 19:28:00 -07:00
|
|
|
version = "3.1.7";
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "bcrypt";
|
2017-01-13 07:19:46 -08:00
|
|
|
|
2018-06-23 06:27:58 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-19 19:28:00 -07:00
|
|
|
sha256 = "0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42";
|
2017-01-13 07:19:46 -08:00
|
|
|
};
|
|
|
|
buildInputs = [ pycparser mock pytest py ];
|
2017-01-31 21:46:19 -08:00
|
|
|
propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
|
2017-01-13 07:19:46 -08: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/;
|
|
|
|
};
|
|
|
|
}
|