From 00d3c8b3e3cb25790602ec583ec6211ea7d52b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 2 Aug 2023 13:40:46 -0700 Subject: [PATCH] python310Packages.captcha: 0.4 -> 0.5.0 Diff: https://github.com/lepture/captcha/compare/v0.4...v0.5.0 --- .../python-modules/captcha/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/captcha/default.nix b/pkgs/development/python-modules/captcha/default.nix index d040c2e7bf76..807272da5b1c 100644 --- a/pkgs/development/python-modules/captcha/default.nix +++ b/pkgs/development/python-modules/captcha/default.nix @@ -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";