Merge pull request #236537 from fabaff/past-time-migrate

past-time: migrate to python3.pkgs.buildPythonApplication
This commit is contained in:
Fabian Affolter 2023-06-08 18:47:30 +02:00 committed by GitHub
commit 6ae5941ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -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 ];
};

View File

@ -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 { };