python310Packages.captcha: 0.4 -> 0.5.0
Diff: https://github.com/lepture/captcha/compare/v0.4...v0.5.0
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user