diff --git a/pkgs/tools/misc/past-time/default.nix b/pkgs/tools/misc/past-time/default.nix index cc4a40078624..4e551a041bdd 100644 --- a/pkgs/tools/misc/past-time/default.nix +++ b/pkgs/tools/misc/past-time/default.nix @@ -1,38 +1,38 @@ { lib -, buildPythonApplication -, click , fetchFromGitHub -, freezegun -, pytestCheckHook -, tqdm +, python3 }: -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "past-time"; version = "0.2.1"; + format = "setuptools"; src = fetchFromGitHub { owner = "fabaff"; repo = pname; - rev = version; - sha256 = "0yhc0630rmcx4ia9y6klpx002mavfmqf1s3jb2gz54jlccwqbfgl"; + rev = "refs/tags/${version}"; + hash = "sha256-9LmFOWNUkvKfWHLo4HB1W1UBQL90Gp9UJJ3VDIYBDHo="; }; - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ click tqdm ]; - nativeCheckInputs = [ + nativeCheckInputs = with python3.pkgs; [ freezegun pytestCheckHook ]; - pythonImportsCheck = [ "past_time" ]; + pythonImportsCheck = [ + "past_time" + ]; meta = with lib; { description = "Tool to visualize the progress of the year based on the past days"; homepage = "https://github.com/fabaff/past-time"; + changelog = "https://github.com/fabaff/past-time/releases/tag/${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bda115e3b2de..aebf22037919 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11565,7 +11565,7 @@ with pkgs; cnping = callPackage ../tools/networking/cnping { }; - past-time = python3Packages.callPackage ../tools/misc/past-time { }; + past-time = callPackage ../tools/misc/past-time { }; pastebinit = callPackage ../tools/misc/pastebinit { };