3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/bcrypt.nix

25 lines
702 B
Nix
Raw Normal View History

2017-01-13 15:19:46 +00:00
{ stdenv, buildPythonPackage, isPyPy, fetchurl
, cffi, pycparser, mock, pytest, py, six }:
2017-01-13 15:19:46 +00:00
with stdenv.lib;
buildPythonPackage rec {
2017-10-25 19:04:35 +01:00
version = "3.1.4";
pname = "bcrypt";
name = "${pname}-${version}";
2017-01-13 15:19:46 +00:00
src = fetchurl {
url = "mirror://pypi/b/bcrypt/${name}.tar.gz";
2017-10-25 19:04:35 +01:00
sha256 = "67ed1a374c9155ec0840214ce804616de49c3df9c5bc66740687c1c9b1cd9e8d";
2017-01-13 15:19:46 +00:00
};
buildInputs = [ pycparser mock pytest py ];
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/;
};
}