1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 python,
6}:
7
8buildPythonPackage rec {
9 pname = "about-time";
10 version = "4.2.1";
11 format = "setuptools";
12
13 # PyPi release does not contain test files, but the repo has no release tags,
14 # so while having no tests is not ideal, follow the PyPi releases for now
15 # TODO: switch to fetchFromGitHub once this issue is fixed:
16 # https://github.com/rsalmei/about-time/issues/15
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-alOIYtM85n2ZdCnRSZgxDh2/2my32bv795nEcJhH/s4=";
20 };
21
22 doCheck = false;
23
24 pythonImportsCheck = [ "about_time" ];
25
26 postInstall = ''
27 mkdir -p $out/share/doc/python${python.pythonVersion}-$pname-$version/
28 mv $out/LICENSE $out/share/doc/python${python.pythonVersion}-$pname-$version/
29 '';
30
31 meta = with lib; {
32 description = "Cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions";
33 homepage = "https://github.com/rsalmei/about-time";
34 license = licenses.mit;
35 maintainers = with maintainers; [ thiagokokada ];
36 };
37}