1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 ipython,
6 keyring,
7 ptpython,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11 setuptools-generate,
12 setuptools-scm,
13}:
14
15buildPythonPackage rec {
16 pname = "repl-python-wakatime";
17 version = "0.0.11";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-HoCdeo03Lf3g5Xg0GgAyWOu2PtGqy33vg5bQrfkEPkE=";
25 };
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 setuptools-generate
31 ];
32
33 dependencies = [
34 ptpython
35 ipython
36 ];
37
38 nativeCheckInputs = [
39 keyring
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "repl_python_wakatime" ];
44
45 meta = with lib; {
46 description = "Python REPL plugin for automatic time tracking and metrics generated from your programming activity";
47 homepage = "https://github.com/wakatime/repl-python-wakatime";
48 changelog = "https://github.com/wakatime/repl-python-wakatime/releases/tag/${version}";
49 license = licenses.gpl3Only;
50 maintainers = with maintainers; [ jfvillablanca ];
51 };
52}