From ed1785e64195c4b08ee0f9d517dca3adb0e4f596 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 10 Jun 2024 19:50:19 +0300 Subject: [PATCH] tasklib: write without `with <>;` --- .../python-modules/tasklib/default.nix | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/tasklib/default.nix b/pkgs/development/python-modules/tasklib/default.nix index ed4d3ea7f784..30a2fafa9758 100644 --- a/pkgs/development/python-modules/tasklib/default.nix +++ b/pkgs/development/python-modules/tasklib/default.nix @@ -1,17 +1,14 @@ { lib, - pythonPackages, + buildPythonPackage, + six, + pytz, + tzlocal, fetchPypi, taskwarrior2, writeShellScriptBin, }: -with pythonPackages; - -let - - wsl_stub = writeShellScriptBin "wsl" "true"; -in buildPythonPackage rec { pname = "tasklib"; version = "2.5.1"; @@ -30,15 +27,16 @@ buildPythonPackage rec { nativeCheckInputs = [ taskwarrior2 - wsl_stub + # stub + (writeShellScriptBin "wsl" "true") ]; - meta = with lib; { + meta = { homepage = "https://github.com/robgolding/tasklib"; description = "Library for interacting with taskwarrior databases"; changelog = "https://github.com/GothenburgBitFactory/tasklib/releases/tag/${version}"; - maintainers = with maintainers; [ arcnmx ]; - platforms = platforms.all; - license = licenses.bsd3; + maintainers = with lib.maintainers; [ arcnmx ]; + platforms = lib.platforms.all; + license = lib.licenses.bsd3; }; }