1{ lib, buildPythonPackage, fetchPypi 2, isPyPy, cffi, pytest, six }: 3 4buildPythonPackage rec { 5 version = "3.1.7"; 6 pname = "bcrypt"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42"; 11 }; 12 13 checkInputs = [ pytest ]; 14 15 propagatedBuildInputs = [ six ] ++ lib.optional (!isPyPy) cffi; 16 17 meta = with lib; { 18 description = "Modern password hashing for your software and your servers"; 19 homepage = "https://github.com/pyca/bcrypt/"; 20 license = licenses.asl20; 21 maintainers = with maintainers; [ domenkozar ]; 22 }; 23}