From 1f9a92d204bb616efd3638021abcf26871d7ced6 Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Tue, 14 Jan 2025 16:47:06 +0100 Subject: [PATCH] cruft: 2.15.0 -> 2.16.0 --- pkgs/by-name/cr/cruft/package.nix | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/cr/cruft/package.nix b/pkgs/by-name/cr/cruft/package.nix index 496afcc4939d..fb64c38e861b 100644 --- a/pkgs/by-name/cr/cruft/package.nix +++ b/pkgs/by-name/cr/cruft/package.nix @@ -5,30 +5,38 @@ }: python3Packages.buildPythonApplication rec { pname = "cruft"; - version = "2.15.0"; + version = "2.16.0"; pyproject = true; src = fetchFromGitHub { owner = "cruft"; repo = "cruft"; - rev = version; - hash = "sha256-qIVyNMoI3LsoOV/6XPa60Y1vTRvkezesF7wF9WVSLGk="; + tag = version; + hash = "sha256-hUucSfgDBlT5jVk/oF8JjbcYhjHgkprfGRwsSNfgjfg="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'version = "0.0.0"' 'version = "${version}"' + ''; + build-system = with python3Packages; [ - poetry-core + hatchling ]; nativeCheckInputs = with python3Packages; [ pytest7CheckHook ]; - dependencies = with python3Packages; [ - click - cookiecutter - gitpython - typer - ]; + dependencies = + with python3Packages; + [ + click + cookiecutter + gitpython + typer + ] + ++ lib.optional (pythonOlder "3.11") python3Packages.toml; pythonImportsCheck = "cruft";