diff --git a/pkgs/development/python-modules/about-time/default.nix b/pkgs/development/python-modules/about-time/default.nix new file mode 100644 index 000000000000..3759957c9ca6 --- /dev/null +++ b/pkgs/development/python-modules/about-time/default.nix @@ -0,0 +1,31 @@ +{ lib +, fetchPypi +, buildPythonPackage +}: + +buildPythonPackage rec { + pname = "about-time"; + version = "4.2.1"; + + # PyPi release does not contain test files, but the repo has no release tags, + # so while having no tests is not ideal, follow the PyPi releases for now + # TODO: switch to fetchFromGitHub once this issue is fixed: + # https://github.com/rsalmei/about-time/issues/15 + src = fetchPypi { + inherit pname version; + hash = "sha256-alOIYtM85n2ZdCnRSZgxDh2/2my32bv795nEcJhH/s4="; + }; + + doCheck = false; + + pythonImportsCheck = [ + "about_time" + ]; + + meta = with lib; { + description = "A cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions"; + homepage = "https://github.com/rsalmei/about-time"; + license = licenses.mit; + maintainers = with maintainers; [ thiagokokada ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8f6dc2117ac8..6a0e1934f6c3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20,6 +20,8 @@ self: super: with self; { aardwolf = callPackage ../development/python-modules/aardwolf { }; + about-time = callPackage ../development/python-modules/about-time { }; + absl-py = callPackage ../development/python-modules/absl-py { }; accessible-pygments = callPackage ../development/python-modules/accessible-pygments { };