about summary refs log tree commit diff
path: root/pkgs/development/python-modules/yaspin/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/yaspin/default.nix')
-rw-r--r--pkgs/development/python-modules/yaspin/default.nix39
1 files changed, 19 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/yaspin/default.nix b/pkgs/development/python-modules/yaspin/default.nix
index 0235c06ab149..40ad8de8ef30 100644
--- a/pkgs/development/python-modules/yaspin/default.nix
+++ b/pkgs/development/python-modules/yaspin/default.nix
@@ -1,33 +1,34 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, poetry-core
-, pytest-xdist
-, pytestCheckHook
-, pythonOlder
-, termcolor
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  poetry-core,
+  pytest-xdist,
+  pytestCheckHook,
+  pythonOlder,
+  termcolor,
 }:
 
 buildPythonPackage rec {
   pname = "yaspin";
-  version = "3.0.1";
-  format = "pyproject";
+  version = "3.1.0";
+  pyproject = true;
 
   disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "pavdmyt";
-    repo = pname;
+    repo = "yaspin";
     rev = "refs/tags/v${version}";
-    hash = "sha256-cYTCJyHZ9yNg6BfpZ+g3P0yMWFhYUxgYtlbANNgfohQ=";
+    hash = "sha256-4IWaAPqzGri7V8X2gL607F5GlWfIFDlBBpDwSe4sz9I=";
   };
 
-  nativeBuildInputs = [
-    poetry-core
-  ];
+  build-system = [ poetry-core ];
+
+  dependencies = [ termcolor ];
 
-  propagatedBuildInputs = [
-    termcolor
+  pythonRelaxDeps = [
+    "termcolor"
   ];
 
   nativeCheckInputs = [
@@ -40,9 +41,7 @@ buildPythonPackage rec {
     export FORCE_COLOR=1
   '';
 
-  pythonImportsCheck = [
-    "yaspin"
-  ];
+  pythonImportsCheck = [ "yaspin" ];
 
   meta = with lib; {
     description = "Yet Another Terminal Spinner";