From 8dd8aac0f3df87bb777c83b83854476bfb4c3c71 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Wed, 21 Apr 2021 22:39:10 +0200 Subject: [PATCH] Add termtime python package --- default.nix | 7 +++++++ pkgs/python-packages/termtime.nix | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/python-packages/termtime.nix diff --git a/default.nix b/default.nix index 947456b..1d3c386 100644 --- a/default.nix +++ b/default.nix @@ -3,6 +3,11 @@ self: super: let inherit (super) callPackage; in +let + pythonOverrides = self: super: { + termtime = callPackage ./pkgs/python-packages/termtime.nix { inherit (super) buildPythonPackage fetchPypi; }; + }; +in rec { coreutils-advcpmv = callPackage ./pkgs/coreutils-advcpmv.nix {}; @@ -18,4 +23,6 @@ rec { flatery-icon-theme = callPackage ./pkgs/icon-theme/flatery-icon-theme.nix {}; openhexagon = callPackage ./pkgs/openhexagon/default.nix {}; + + python3 = super.python3.override { packageOverrides = pythonOverrides; }; } diff --git a/pkgs/python-packages/termtime.nix b/pkgs/python-packages/termtime.nix new file mode 100644 index 0000000..fe99540 --- /dev/null +++ b/pkgs/python-packages/termtime.nix @@ -0,0 +1,19 @@ +{ lib +, buildPythonPackage +, fetchPypi }: + +buildPythonPackage rec { + pname = "termtime"; + version = "0.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1i5p0sv7dn9x3xdjxm5p151qdvg92c23l280ihkrqp8k69gah9y7"; + }; + + meta = with lib; { + homepage = "https://github.com/vimist/termtime"; + description = "A command line utility to manage and display time related tasks in the terminal"; + license = licenses.unfree; + }; +}