Merge pull request #87864 from doronbehar/fix-todoman

This commit is contained in:
Doron Behar 2020-11-05 13:15:31 +02:00 committed by GitHub
commit acd45657f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,36 @@ buildPythonApplication rec {
sha256 = "1aq7f63bhs9dnwzp15nfr07f2ki6s3lnqfap3b09rhchn6lfznwb"; sha256 = "1aq7f63bhs9dnwzp15nfr07f2ki6s3lnqfap3b09rhchn6lfznwb";
}; };
LOCALE_ARCHIVE = stdenv.lib.optionalString stdenv.isLinux nativeBuildInputs = [
"${glibcLocales}/lib/locale/locale-archive"; installShellFiles
LANG = "en_US.UTF-8"; ];
LC_TYPE = "en_US.UTF-8"; propagatedBuildInputs = with python3.pkgs; [
atomicwrites
click
click-log
click-repl
configobj
humanize
icalendar
parsedatetime
python-dateutil
pyxdg
tabulate
urwid
];
nativeBuildInputs = [ installShellFiles ]; checkInputs = with python3.pkgs; [
buildInputs = [ glibcLocales ]; flake8
propagatedBuildInputs = with python3.pkgs; flake8-import-order
[ atomicwrites click click-log click-repl configobj humanize icalendar parsedatetime freezegun
python-dateutil pyxdg tabulate urwid ]; hypothesis
pytest
pytestrunner
pytestcov
glibcLocales
];
checkInputs = with python3.pkgs; LC_ALL = "en_US.UTF-8";
[ flake8 flake8-import-order freezegun hypothesis pytest pytestrunner pytestcov ];
makeWrapperArgs = [ "--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