python3Packages.about-time: 4.2.1 -> 4.2.2
This commit was automatically generated using update-python-libraries.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user