python3Packages.about-time: 4.2.1 -> 4.2.2

This commit was automatically generated using update-python-libraries.
This commit is contained in:
Martin Weinelt
2025-08-09 18:57:52 +02:00
parent 0d0195ad7d
commit f4e2359f79
@@ -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";