forked from mirrors/nixpkgs
24 lines
650 B
Nix
24 lines
650 B
Nix
{ stdenv, buildPythonPackage, isPyPy, fetchPypi
|
|
, cffi, pycparser, mock, pytest, py, six }:
|
|
|
|
with stdenv.lib;
|
|
|
|
buildPythonPackage rec {
|
|
version = "3.2.0";
|
|
pname = "bcrypt";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
|
|
};
|
|
buildInputs = [ pycparser mock pytest py ];
|
|
propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
|
|
|
|
meta = {
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
description = "Modern password hashing for your software and your servers";
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/pyca/bcrypt/";
|
|
};
|
|
}
|