Merge pull request #171487 from dotlambda/udiskie-2.4.2

udiskie: 2.4.0 -> 2.4.2

authored by

Anderson Torres and committed by
GitHub
851fd631 31d2b31c

+48 -26
+30 -25
pkgs/applications/misc/udiskie/default.nix
··· 1 1 { lib 2 + , asciidoc 2 3 , fetchFromGitHub 3 - , buildPythonApplication 4 - , asciidoc-full 5 - , docopt 6 - , gettext 7 4 , gobject-introspection 8 5 , gtk3 9 - , keyutils 6 + , installShellFiles 10 7 , libappindicator-gtk3 11 8 , libnotify 12 9 , librsvg 13 - , nose 14 - , pygobject3 15 - , pyyaml 10 + , python3 16 11 , udisks2 17 12 , wrapGAppsHook 18 13 }: 19 14 20 - buildPythonApplication rec { 15 + python3.pkgs.buildPythonApplication rec { 21 16 pname = "udiskie"; 22 - version = "2.4.0"; 17 + version = "2.4.2"; 18 + 19 + format = "setuptools"; 23 20 24 21 src = fetchFromGitHub { 25 22 owner = "coldfix"; 26 23 repo = "udiskie"; 27 24 rev = "v${version}"; 28 - hash = "sha256-T4kMPMXfehZT7P+TOd1llR2TbHPA/quNL545xxlmJfE="; 25 + hash = "sha256-lQMJVSY3JeZYYOFDyV29Ye2j8r+ngE/ta2wQYipy4hU="; 29 26 }; 30 27 31 - outputs = [ "out" "man" ]; 28 + patches = [ 29 + ./locale-path.patch 30 + ]; 31 + 32 + postPatch = '' 33 + substituteInPlace udiskie/locale.py --subst-var out 34 + ''; 32 35 33 36 nativeBuildInputs = [ 34 - asciidoc-full # Man page 35 - gettext 37 + asciidoc # Man page 36 38 gobject-introspection 39 + installShellFiles 37 40 wrapGAppsHook 38 41 ]; 42 + 43 + dontWrapGApps = true; 39 44 40 45 buildInputs = [ 41 46 gobject-introspection ··· 46 51 udisks2 47 52 ]; 48 53 49 - propagatedBuildInputs = [ 54 + propagatedBuildInputs = with python3.pkgs; [ 50 55 docopt 56 + keyutils 51 57 pygobject3 52 58 pyyaml 53 59 ]; ··· 57 63 ''; 58 64 59 65 postInstall = '' 60 - mkdir -p $man/share/man/man8 61 - cp -v doc/udiskie.8 $man/share/man/man8/ 66 + installManPage doc/udiskie.8 67 + ''; 68 + 69 + preFixup = '' 70 + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 62 71 ''; 63 72 64 - checkInputs = [ 65 - keyutils 66 - nose 73 + checkInputs = with python3.pkgs; [ 74 + pytestCheckHook 67 75 ]; 68 76 69 - checkPhase = '' 70 - nosetests 71 - ''; 72 - 73 77 meta = with lib; { 74 78 homepage = "https://github.com/coldfix/udiskie"; 79 + changelog = "https://github.com/coldfix/udiskie/blob/${src.rev}/CHANGES.rst"; 75 80 description = "Removable disk automounter for udisks"; 76 81 longDescription = '' 77 82 udiskie is a udisks2 front-end that allows to manage removeable media such ··· 88 93 - password caching (requires python keyutils 0.3) 89 94 ''; 90 95 license = licenses.mit; 91 - maintainers = with maintainers; [ AndersonTorres ]; 96 + maintainers = with maintainers; [ AndersonTorres dotlambda ]; 92 97 }; 93 98 }
+17
pkgs/applications/misc/udiskie/locale-path.patch
··· 1 + diff --git a/udiskie/locale.py b/udiskie/locale.py 2 + index f12bea9..450e38b 100644 3 + --- a/udiskie/locale.py 4 + +++ b/udiskie/locale.py 5 + @@ -10,10 +10,8 @@ from gettext import translation 6 + testdirs = [ 7 + # manual override: 8 + os.environ.get('TEXTDOMAINDIR'), 9 + - # editable installation: 10 + - os.path.join(os.path.dirname(__file__), '../build/locale'), 11 + - # user or virtualenv installation: 12 + - os.path.join(sys.prefix, 'share/locale'), 13 + + # Nix installation: 14 + + os.path.join('@out@', 'share/locale'), 15 + ] 16 + testfile = 'en_US/LC_MESSAGES/udiskie.mo' 17 + localedir = next(
+1 -1
pkgs/top-level/all-packages.nix
··· 29350 29350 29351 29351 udevil = callPackage ../applications/misc/udevil {}; 29352 29352 29353 - udiskie = python3.pkgs.callPackage ../applications/misc/udiskie { }; 29353 + udiskie = callPackage ../applications/misc/udiskie { }; 29354 29354 29355 29355 sacc = callPackage ../applications/networking/gopher/sacc { }; 29356 29356