summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/office
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/todoman/default.nix49
1 files changed, 34 insertions, 15 deletions
diff --git a/pkgs/applications/office/todoman/default.nix b/pkgs/applications/office/todoman/default.nix
index 092a776ae606..3eb7f4f57d02 100644
--- a/pkgs/applications/office/todoman/default.nix
+++ b/pkgs/applications/office/todoman/default.nix
@@ -1,4 +1,9 @@
-{ stdenv, python3, glibcLocales, installShellFiles, jq }:
+{ stdenv
+, python3
+, glibcLocales
+, installShellFiles
+, jq
+}:
let
inherit (python3.pkgs) buildPythonApplication fetchPypi;
@@ -12,22 +17,36 @@ buildPythonApplication rec {
sha256 = "1aq7f63bhs9dnwzp15nfr07f2ki6s3lnqfap3b09rhchn6lfznwb";
};
- LOCALE_ARCHIVE = stdenv.lib.optionalString stdenv.isLinux
- "${glibcLocales}/lib/locale/locale-archive";
- LANG = "en_US.UTF-8";
- LC_TYPE = "en_US.UTF-8";
+ nativeBuildInputs = [
+ installShellFiles
+ ];
+ propagatedBuildInputs = with python3.pkgs; [
+ atomicwrites
+ click
+ click-log
+ click-repl
+ configobj
+ humanize
+ icalendar
+ parsedatetime
+ python-dateutil
+ pyxdg
+ tabulate
+ urwid
+ ];
- nativeBuildInputs = [ installShellFiles ];
- buildInputs = [ glibcLocales ];
- propagatedBuildInputs = with python3.pkgs;
- [ atomicwrites click click-log click-repl configobj humanize icalendar parsedatetime
- python-dateutil pyxdg tabulate urwid ];
+ checkInputs = with python3.pkgs; [
+ flake8
+ flake8-import-order
+ freezegun
+ hypothesis
+ pytest
+ pytestrunner
+ pytestcov
+ glibcLocales
+ ];
- checkInputs = with python3.pkgs;
- [ flake8 flake8-import-order freezegun hypothesis pytest pytestrunner pytestcov ];
-
- makeWrapperArgs = [ "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
- "--set CHARSET en_us.UTF-8" ];
+ LC_ALL = "en_US.UTF-8";
postInstall = ''
installShellCompletion --bash contrib/completion/bash/_todo