1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "about-time"; 10 version = "4.2.2"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "rsalmei"; 15 repo = "about-time"; 16 tag = "v${version}"; 17 hash = "sha256-a7jFVrxUvdR5UdeNNXSTsXC/Q76unedMLmcu0iTS3Tk="; 18 }; 19 20 postPatch = '' 21 substituteInPlace pyproject.toml \ 22 --replace-fail "setuptools~=75.3" setuptools 23 ''; 24 25 build-system = [ setuptools ]; 26 27 pythonImportsCheck = [ "about_time" ]; 28 29 meta = with lib; { 30 description = "Cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions"; 31 homepage = "https://github.com/rsalmei/about-time"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ thiagokokada ]; 34 }; 35}