3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request from leenaars/todoman

todoman: 3.4.0 -> 3.4.1
This commit is contained in:
Jörg Thalheim 2018-10-28 22:57:55 +00:00 committed by GitHub
commit 18ecca67df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,16 +1,16 @@
{ stdenv, python3, glibcLocales }:
{ stdenv, python3, glibcLocales, fetchpatch }:
let
inherit (python3.pkgs) buildPythonApplication fetchPypi;
in
buildPythonApplication rec {
pname = "todoman";
version = "3.4.0";
version = "3.4.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "09441fdrwz2irsbrxnpwys51372z6rn6gnxn87p95r3fv9gmh0fw";
sha256 = "1rvid1rklvgvsf6xmxd91j2fi46v4fzn5z6zbs5yn0wpb0k605r5";
};
LOCALE_ARCHIVE = stdenv.lib.optionalString stdenv.isLinux
@ -29,9 +29,17 @@ buildPythonApplication rec {
makeWrapperArgs = [ "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
"--set CHARSET en_us.UTF-8" ];
patches = [
(fetchpatch {
url = "https://github.com/pimutils/todoman/commit/3e191111b72df9ec91a773befefa291799374422.patch";
sha256 = "12mskbp0d8p2lllkxm3m9wyy2hsbnz2qs297civsc3ly2l5bcrag";
})
];
preCheck = ''
# Remove one failing test that only checks whether the command line works
rm tests/test_main.py
rm tests/test_cli.py
'';
meta = with stdenv.lib; {