Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / captcha / default.nix
blob807272da5b1c749272d946012ed78ad2908118ad
1 { lib
2 , fetchFromGitHub
3 , pythonOlder
4 , buildPythonPackage
5 , pillow
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "captcha";
11   version = "0.5.0";
13   disabled = pythonOlder "3.8";
15   format = "setuptools";
17   src = fetchFromGitHub {
18     owner = "lepture";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-TPPuf0BRZPSHPSF0HuGxhjhoSyZQ7r86kSjkrztgZ5w=";
22   };
24   propagatedBuildInputs = [ pillow ];
26   pythonImportsCheck = [ "captcha" ];
28   nativeCheckInputs = [ pytestCheckHook ];
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   };