depot/third_party/nixpkgs/pkgs/development/python-modules/about-time/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
884 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
}:
buildPythonPackage rec {
pname = "about-time";
version = "4.2.1";
format = "setuptools";
# 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 = "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 ];
};
}