Unverified Commit 6071702f authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

python312Packages.about-time: move LICENSE to $out/share/doc/ folder (#398140)

parents 6c606d17 76c72040
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";