python311Packages.taskw: fix build, use pep517 build, reformat

This commit is contained in:
Martin Weinelt 2024-03-27 04:30:07 +01:00
parent 86fcd19953
commit 4913815067
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
1 changed files with 24 additions and 10 deletions

View File

@ -1,20 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, tox
, six
, python-dateutil
, kitchen
, pytestCheckHook
, pytz
# build-system
, setuptools
# native dependencies
, pkgs
# dependencies
, kitchen
, python-dateutil
, pytz
# tests
, pytest7CheckHook
}:
buildPythonPackage rec {
pname = "taskw";
version = "2.0.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
@ -31,11 +37,19 @@ buildPythonPackage rec {
--replace '@@taskwarrior@@' '${pkgs.taskwarrior}'
'';
build-system = [
setuptools
];
buildInputs = [ pkgs.taskwarrior ];
propagatedBuildInputs = [ six python-dateutil kitchen pytz ];
dependencies = [
kitchen
python-dateutil
pytz
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [ pytest7CheckHook ];
meta = with lib; {
homepage = "https://github.com/ralphbean/taskw";