about summary refs log tree commit diff
path: root/pkgs/development/python-modules/captcha/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/captcha/default.nix')
-rw-r--r--pkgs/development/python-modules/captcha/default.nix31
1 files changed, 17 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/captcha/default.nix b/pkgs/development/python-modules/captcha/default.nix
index 807272da5b1c..b7d7e55ad4e2 100644
--- a/pkgs/development/python-modules/captcha/default.nix
+++ b/pkgs/development/python-modules/captcha/default.nix
@@ -1,34 +1,37 @@
-{ lib
-, fetchFromGitHub
-, pythonOlder
-, buildPythonPackage
-, pillow
-, pytestCheckHook
+{
+  lib,
+  fetchFromGitHub,
+  pythonOlder,
+  buildPythonPackage,
+  pillow,
+  pytestCheckHook,
+  setuptools,
 }:
 
 buildPythonPackage rec {
   pname = "captcha";
-  version = "0.5.0";
+  version = "0.6.0";
+  pyproject = true;
 
   disabled = pythonOlder "3.8";
 
-  format = "setuptools";
-
   src = fetchFromGitHub {
     owner = "lepture";
-    repo = pname;
-    rev = "v${version}";
-    hash = "sha256-TPPuf0BRZPSHPSF0HuGxhjhoSyZQ7r86kSjkrztgZ5w=";
+    repo = "captcha";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-5d5gts+BXS5OKVziR9cLczsD2QMXZ/n31sPEq+gPlxk=";
   };
 
-  propagatedBuildInputs = [ pillow ];
+  dependencies = [ pillow ];
+
+  nativeBuildInputs = [ setuptools ];
 
   pythonImportsCheck = [ "captcha" ];
 
   nativeCheckInputs = [ pytestCheckHook ];
 
   meta = with lib; {
-    description = "A captcha library that generates audio and image CAPTCHAs";
+    description = "Captcha library that generates audio and image CAPTCHAs";
     homepage = "https://github.com/lepture/captcha";
     license = licenses.bsd3;
     maintainers = with maintainers; [ Flakebi ];