todoman: format inputs and arguments

This commit is contained in:
Doron Behar 2020-04-26 11:03:11 +03:00
parent fc03905902
commit 181dfe306f

View File

@ -1,4 +1,9 @@
{ stdenv, python3, glibcLocales, installShellFiles, jq }: { stdenv
, python3
, glibcLocales
, installShellFiles
, jq
}:
let let
inherit (python3.pkgs) buildPythonApplication fetchPypi; inherit (python3.pkgs) buildPythonApplication fetchPypi;
@ -12,22 +17,46 @@ buildPythonApplication rec {
sha256 = "16brw2zhm5vamffin6qjb0lxjlj3ba40vaficl851nw2xh2mrdhy"; sha256 = "16brw2zhm5vamffin6qjb0lxjlj3ba40vaficl851nw2xh2mrdhy";
}; };
LOCALE_ARCHIVE = stdenv.lib.optionalString stdenv.isLinux LOCALE_ARCHIVE = stdenv.lib.optionalString stdenv.isLinux
"${glibcLocales}/lib/locale/locale-archive"; "${glibcLocales}/lib/locale/locale-archive";
LANG = "en_US.UTF-8"; LANG = "en_US.UTF-8";
LC_TYPE = "en_US.UTF-8"; LC_TYPE = "en_US.UTF-8";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [
buildInputs = [ glibcLocales ]; installShellFiles
propagatedBuildInputs = with python3.pkgs; ];
[ atomicwrites click click-log click-repl configobj humanize icalendar parsedatetime buildInputs = [
python-dateutil pyxdg tabulate urwid ]; glibcLocales
];
propagatedBuildInputs = with python3.pkgs; [
atomicwrites
click
click-log
click-repl
configobj
humanize
icalendar
parsedatetime
python-dateutil
pyxdg
tabulate
urwid
];
checkInputs = with python3.pkgs; checkInputs = with python3.pkgs; [
[ flake8 flake8-import-order freezegun hypothesis pytest pytestrunner pytestcov ]; flake8
flake8-import-order
freezegun
hypothesis
pytest
pytestrunner
pytestcov
];
makeWrapperArgs = [ "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive" makeWrapperArgs = [
"--set CHARSET en_us.UTF-8" ]; "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
"--set CHARSET en_us.UTF-8"
];
postInstall = '' postInstall = ''
installShellCompletion --bash contrib/completion/bash/_todo installShellCompletion --bash contrib/completion/bash/_todo