2021-03-02 21:51:32 +01:00
|
|
|
{ lib
|
2022-05-04 05:59:13 +02:00
|
|
|
, asciidoc
|
2021-03-02 21:51:32 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
2022-05-04 05:59:13 +02:00
|
|
|
, installShellFiles
|
2021-03-02 21:51:32 +01:00
|
|
|
, libappindicator-gtk3
|
|
|
|
, libnotify
|
|
|
|
, librsvg
|
2022-05-04 05:59:13 +02:00
|
|
|
, python3
|
2021-03-02 21:51:32 +01:00
|
|
|
, udisks2
|
2024-04-26 22:24:03 +02:00
|
|
|
, wrapGAppsHook3
|
2024-01-27 16:49:08 +01:00
|
|
|
, testers
|
|
|
|
, udiskie
|
2017-12-31 01:50:56 +01:00
|
|
|
}:
|
|
|
|
|
2022-05-04 05:59:13 +02:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-03-03 13:43:28 +01:00
|
|
|
pname = "udiskie";
|
2024-01-27 16:43:55 +01:00
|
|
|
version = "2.5.2";
|
2022-05-04 05:59:13 +02:00
|
|
|
|
2023-11-25 17:00:04 +01:00
|
|
|
pyproject = true;
|
2016-09-10 12:16:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coldfix";
|
|
|
|
repo = "udiskie";
|
2021-03-02 21:51:32 +01:00
|
|
|
rev = "v${version}";
|
2024-01-27 16:43:55 +01:00
|
|
|
hash = "sha256-r9ppuWYY3e2thsfFh4ooOgfqNvmCVw7fS0SpJCJcysQ=";
|
2016-09-10 12:16:39 +02:00
|
|
|
};
|
|
|
|
|
2022-05-04 05:59:13 +02:00
|
|
|
patches = [
|
|
|
|
./locale-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace udiskie/locale.py --subst-var out
|
|
|
|
'';
|
2022-01-04 23:37:48 +01:00
|
|
|
|
2019-03-03 13:43:28 +01:00
|
|
|
nativeBuildInputs = [
|
2022-05-04 05:59:13 +02:00
|
|
|
asciidoc # Man page
|
2019-03-03 13:43:28 +01:00
|
|
|
gobject-introspection
|
2022-05-04 05:59:13 +02:00
|
|
|
installShellFiles
|
2023-11-25 17:00:04 +01:00
|
|
|
python3.pkgs.setuptools
|
2024-04-26 22:24:03 +02:00
|
|
|
wrapGAppsHook3
|
2019-03-03 13:43:28 +01:00
|
|
|
];
|
|
|
|
|
2022-05-04 05:59:13 +02:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2019-03-03 13:43:28 +01:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
libappindicator-gtk3
|
2021-03-02 21:51:32 +01:00
|
|
|
libnotify
|
2022-01-04 23:37:48 +01:00
|
|
|
librsvg # SVG icons
|
2021-03-02 21:51:32 +01:00
|
|
|
udisks2
|
2016-09-10 12:16:39 +02:00
|
|
|
];
|
|
|
|
|
2022-05-04 05:59:13 +02:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2019-03-03 13:43:28 +01:00
|
|
|
docopt
|
2022-05-04 05:59:13 +02:00
|
|
|
keyutils
|
2019-03-03 13:43:28 +01:00
|
|
|
pygobject3
|
|
|
|
pyyaml
|
2016-09-10 12:16:39 +02:00
|
|
|
];
|
|
|
|
|
2022-01-04 23:37:48 +01:00
|
|
|
postBuild = ''
|
|
|
|
make -C doc
|
|
|
|
'';
|
2016-09-10 12:16:39 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
2022-05-04 05:59:13 +02:00
|
|
|
installManPage doc/udiskie.8
|
2023-10-03 19:39:32 +02:00
|
|
|
|
|
|
|
installShellCompletion \
|
|
|
|
--bash completions/bash/* \
|
|
|
|
--zsh completions/zsh/*
|
2016-09-10 12:16:39 +02:00
|
|
|
'';
|
|
|
|
|
2022-05-04 05:59:13 +02:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
2019-03-04 00:10:07 +01:00
|
|
|
'';
|
2016-09-10 12:16:39 +02:00
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-05-04 05:59:13 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-01-27 16:49:08 +01:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = udiskie;
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-03-02 21:51:32 +01:00
|
|
|
homepage = "https://github.com/coldfix/udiskie";
|
2022-05-04 05:59:13 +02:00
|
|
|
changelog = "https://github.com/coldfix/udiskie/blob/${src.rev}/CHANGES.rst";
|
2016-09-10 12:16:39 +02:00
|
|
|
description = "Removable disk automounter for udisks";
|
2021-03-02 21:51:32 +01:00
|
|
|
longDescription = ''
|
|
|
|
udiskie is a udisks2 front-end that allows to manage removeable media such
|
|
|
|
as CDs or flash drives from userspace.
|
|
|
|
|
|
|
|
Its features include:
|
|
|
|
- automount removable media
|
|
|
|
- notifications
|
|
|
|
- tray icon
|
|
|
|
- command line tools for manual un-/mounting
|
|
|
|
- LUKS encrypted devices
|
|
|
|
- unlocking with keyfiles (requires udisks 2.6.4)
|
|
|
|
- loop devices (mounting iso archives)
|
|
|
|
- password caching (requires python keyutils 0.3)
|
|
|
|
'';
|
2016-09-10 12:16:39 +02:00
|
|
|
license = licenses.mit;
|
2022-05-04 05:59:13 +02:00
|
|
|
maintainers = with maintainers; [ AndersonTorres dotlambda ];
|
2016-09-10 12:16:39 +02:00
|
|
|
};
|
|
|
|
}
|