depot/third_party/nixpkgs/pkgs/development/python-modules/bcrypt/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

26 lines
752 B
Nix

{ lib, buildPythonPackage, isPyPy, fetchPypi, pythonOlder
, cffi, pycparser, mock, pytest, py, six }:
buildPythonPackage rec {
version = "3.2.0";
pname = "bcrypt";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
};
buildInputs = [ pycparser mock pytest py ];
propagatedBuildInputs = [ six ] ++ lib.optional (!isPyPy) cffi;
propagatedNativeBuildInputs = lib.optional (!isPyPy) cffi;
meta = with lib; {
maintainers = with maintainers; [ domenkozar ];
description = "Modern password hashing for your software and your servers";
license = licenses.asl20;
homepage = "https://github.com/pyca/bcrypt/";
};
}