python310Packages.captcha: 0.4 -> 0.5.0

Diff: https://github.com/lepture/captcha/compare/v0.4...v0.5.0
This commit is contained in:
Robert Schütz
2023-08-04 18:10:43 -07:00
parent c313ed27da
commit 00d3c8b3e3
@@ -1,32 +1,31 @@
{ lib
, fetchFromGitHub
, pythonOlder
, buildPythonPackage
, nose
, pillow
, wheezy-captcha
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "captcha";
version = "0.4";
version = "0.5.0";
disabled = pythonOlder "3.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "lepture";
repo = pname;
rev = "v${version}";
hash = "sha256-uxUjoACN65Cx5LMKpT+bZhKpf2JRSaEyysnYUgZntp8=";
hash = "sha256-TPPuf0BRZPSHPSF0HuGxhjhoSyZQ7r86kSjkrztgZ5w=";
};
propagatedBuildInputs = [ pillow ];
pythonImportsCheck = [ "captcha" ];
nativeCheckInputs = [ nose wheezy-captcha ];
checkPhase = ''
nosetests -s
'';
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "A captcha library that generates audio and image CAPTCHAs";