python312Packages.about-time: move LICENSE to $out/share/doc/ folder

This commit is contained in:
Mikalai Seva
2025-04-12 15:31:32 +02:00
parent d73c877f05
commit 76c72040cf

View File

@@ -2,6 +2,7 @@
lib,
fetchPypi,
buildPythonPackage,
python,
}:
buildPythonPackage rec {
@@ -22,6 +23,11 @@ buildPythonPackage rec {
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";