nixpkgs/pkgs/development/python-modules/repl-python-wakatime/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
ipython,
keyring,
ptpython,
pytestCheckHook,
setuptools,
setuptools-generate,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "repl-python-wakatime";
version = "0.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "wakatime";
repo = "repl-python-wakatime";
tag = version;
hash = "sha256-1uzW3Q1PE4Gdpo354JewzkR8UREPrAFMXiwOKEMbW3M=";
};
build-system = [
setuptools
setuptools-scm
setuptools-generate
];
dependencies = [
ptpython
ipython
];
nativeCheckInputs = [
keyring
pytestCheckHook
];
pythonImportsCheck = [ "repl_python_wakatime" ];
meta = {
description = "Python REPL plugin for automatic time tracking and metrics generated from your programming activity";
homepage = "https://github.com/wakatime/repl-python-wakatime";
changelog = "https://github.com/wakatime/repl-python-wakatime/releases/tag/${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ jfvillablanca ];
};
}