diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-06-09 17:12:36 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-06-09 17:12:36 +0200 |
commit | 990107a3d345c6ff6db60d07ed82731e9a5ab658 (patch) | |
tree | 077bfa1573a95e8bd96097ea85e3c9886e41157b /pkgs | |
parent | c0b362cf31d05c95d38596888fc8e8b119f01ab3 (diff) |
python311Packages.repl-python-wakatime: refactor
- use pytestCheckHook - add changelog to meta
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/repl-python-wakatime/default.nix | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/repl-python-wakatime/default.nix b/pkgs/development/python-modules/repl-python-wakatime/default.nix index d8f3f2c2945b9..72bdb809a8cb6 100644 --- a/pkgs/development/python-modules/repl-python-wakatime/default.nix +++ b/pkgs/development/python-modules/repl-python-wakatime/default.nix @@ -1,47 +1,51 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, ptpython -, ipython -, setuptools -, setuptools-scm -, setuptools-generate +{ + lib, + buildPythonPackage, + fetchPypi, + ipython, + keyring, + ptpython, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-generate, + setuptools-scm, }: -let +buildPythonPackage rec { pname = "repl-python-wakatime"; version = "0.0.11"; -in + pyproject = true; -buildPythonPackage { - inherit pname version; - format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-HoCdeo03Lf3g5Xg0GgAyWOu2PtGqy33vg5bQrfkEPkE="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm setuptools-generate ]; - propagatedBuildInputs = [ + dependencies = [ ptpython ipython ]; - pythonImportsCheck = [ - "repl_python_wakatime" + nativeCheckInputs = [ + keyring + pytestCheckHook ]; + pythonImportsCheck = [ "repl_python_wakatime" ]; + meta = with lib; { 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 = licenses.gpl3Only; maintainers = with maintainers; [ jfvillablanca ]; }; |