python3Packages.about-time: 4.2.1 -> 4.2.2

This commit was automatically generated using update-python-libraries.

Changed files
+15 -17
pkgs
development
python-modules
about-time
+15 -17
pkgs/development/python-modules/about-time/default.nix
···
{
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
+
'';
-
pythonImportsCheck = [ "about_time" ];
+
build-system = [ setuptools ];
-
postInstall = ''
-
mkdir -p $out/share/doc/python${python.pythonVersion}-$pname-$version/
-
mv $out/LICENSE $out/share/doc/python${python.pythonVersion}-$pname-$version/
-
'';
+
pythonImportsCheck = [ "about_time" ];
meta = with lib; {
description = "Cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions";