···11+{ lib
22+, fetchPypi
33+, buildPythonPackage
44+}:
55+66+buildPythonPackage rec {
77+ pname = "about-time";
88+ version = "4.2.1";
99+1010+ # PyPi release does not contain test files, but the repo has no release tags,
1111+ # so while having no tests is not ideal, follow the PyPi releases for now
1212+ # TODO: switch to fetchFromGitHub once this issue is fixed:
1313+ # https://github.com/rsalmei/about-time/issues/15
1414+ src = fetchPypi {
1515+ inherit pname version;
1616+ hash = "sha256-alOIYtM85n2ZdCnRSZgxDh2/2my32bv795nEcJhH/s4=";
1717+ };
1818+1919+ doCheck = false;
2020+2121+ pythonImportsCheck = [
2222+ "about_time"
2323+ ];
2424+2525+ meta = with lib; {
2626+ description = "A cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions";
2727+ homepage = "https://github.com/rsalmei/about-time";
2828+ license = licenses.mit;
2929+ maintainers = with maintainers; [ thiagokokada ];
3030+ };
3131+}