From f4e2359f79cd0b08372a9ce78236f6c40d62f194 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 5 Aug 2025 04:34:07 +0200 Subject: [PATCH] python3Packages.about-time: 4.2.1 -> 4.2.2 This commit was automatically generated using update-python-libraries. --- .../python-modules/about-time/default.nix | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/about-time/default.nix b/pkgs/development/python-modules/about-time/default.nix index 02f1ca4f917d..3271a11755b4 100644 --- a/pkgs/development/python-modules/about-time/default.nix +++ b/pkgs/development/python-modules/about-time/default.nix @@ -1,33 +1,31 @@ { lib, - fetchPypi, + fetchFromGitHub, buildPythonPackage, - python, + setuptools, }: buildPythonPackage rec { pname = "about-time"; - version = "4.2.1"; - format = "setuptools"; + version = "4.2.2"; + pyproject = true; - # PyPi release does not contain test files, but the repo has no release tags, - # so while having no tests is not ideal, follow the PyPi releases for now - # TODO: switch to fetchFromGitHub once this issue is fixed: - # https://github.com/rsalmei/about-time/issues/15 - src = fetchPypi { - inherit pname version; - hash = "sha256-alOIYtM85n2ZdCnRSZgxDh2/2my32bv795nEcJhH/s4="; + src = fetchFromGitHub { + owner = "rsalmei"; + repo = "about-time"; + tag = "v${version}"; + hash = "sha256-a7jFVrxUvdR5UdeNNXSTsXC/Q76unedMLmcu0iTS3Tk="; }; - doCheck = false; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "setuptools~=75.3" setuptools + ''; + + build-system = [ setuptools ]; pythonImportsCheck = [ "about_time" ]; - postInstall = '' - mkdir -p $out/share/doc/python${python.pythonVersion}-$pname-$version/ - mv $out/LICENSE $out/share/doc/python${python.pythonVersion}-$pname-$version/ - ''; - meta = with lib; { description = "Cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions"; homepage = "https://github.com/rsalmei/about-time";