1{ lib 2, fetchFromGitHub 3, pythonOlder 4, buildPythonPackage 5, pillow 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "captcha"; 11 version = "0.5.0"; 12 13 disabled = pythonOlder "3.8"; 14 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "lepture"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-TPPuf0BRZPSHPSF0HuGxhjhoSyZQ7r86kSjkrztgZ5w="; 22 }; 23 24 propagatedBuildInputs = [ pillow ]; 25 26 pythonImportsCheck = [ "captcha" ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 meta = with lib; { 31 description = "A captcha library that generates audio and image CAPTCHAs"; 32 homepage = "https://github.com/lepture/captcha"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ Flakebi ]; 35 }; 36}