summary refs log tree commit diff
path: root/pkgs/development/python-modules/bcrypt/3_1.nix
blob: c70161cf28b068f42cee2d2c326dc9fc04287236 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, lib, buildPythonPackage, fetchPypi
, isPyPy, cffi, pytest, six }:

buildPythonPackage rec {
  version = "3.1.7";
  pname = "bcrypt";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42";
  };

  checkInputs = [ pytest ];

  propagatedBuildInputs = [ six ] ++ lib.optional (!isPyPy) cffi;

  meta = with lib; {
    description = "Modern password hashing for your software and your servers";
    homepage = "https://github.com/pyca/bcrypt/";
    license = licenses.asl20;
    maintainers = with maintainers; [ domenkozar ];
  };
}