2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, asciidoc-full
|
|
|
|
, buildPythonApplication
|
|
|
|
, docopt
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, keyutils
|
|
|
|
, libappindicator-gtk3
|
|
|
|
, libnotify
|
|
|
|
, librsvg
|
|
|
|
, nose
|
|
|
|
, pygobject3
|
|
|
|
, pyyaml
|
|
|
|
, udisks2
|
|
|
|
, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "udiskie";
|
2021-04-12 18:23:04 +00:00
|
|
|
version = "2.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coldfix";
|
|
|
|
repo = "udiskie";
|
2021-03-09 03:18:52 +00:00
|
|
|
rev = "v${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
hash = "sha256-OeNAcL7jd8GiPVUGxWwX4N/G/jzxfyifaoSD/hXXwyM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
asciidoc-full # Man page
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
libappindicator-gtk3
|
2021-03-09 03:18:52 +00:00
|
|
|
libnotify
|
|
|
|
librsvg # Because it uses SVG icons
|
|
|
|
udisks2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
docopt
|
|
|
|
pygobject3
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = "make -C doc";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
cp -v doc/udiskie.8 $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
checkInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
keyutils
|
2021-04-12 18:23:04 +00:00
|
|
|
nose
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "https://github.com/coldfix/udiskie";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Removable disk automounter for udisks";
|
2021-03-09 03:18:52 +00: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)
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|