3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/udiskie/default.nix

90 lines
1.7 KiB
Nix
Raw Normal View History

2021-03-02 20:51:32 +00:00
{ lib
, fetchFromGitHub
, asciidoc-full
, buildPythonApplication
, docopt
, gettext
, gobject-introspection
, gtk3
, keyutils
, libappindicator-gtk3
, libnotify
, librsvg
, nose
, pygobject3
, pyyaml
, udisks2
, wrapGAppsHook
}:
2021-03-02 20:51:32 +00:00
buildPythonApplication rec {
pname = "udiskie";
2021-04-10 01:00:25 +01:00
version = "2.3.3";
src = fetchFromGitHub {
owner = "coldfix";
repo = "udiskie";
2021-03-02 20:51:32 +00:00
rev = "v${version}";
2021-04-10 01:00:25 +01:00
hash = "sha256-OeNAcL7jd8GiPVUGxWwX4N/G/jzxfyifaoSD/hXXwyM=";
};
nativeBuildInputs = [
2021-03-02 20:51:32 +00:00
asciidoc-full # Man page
gettext
gobject-introspection
wrapGAppsHook
];
buildInputs = [
gobject-introspection
gtk3
libappindicator-gtk3
2021-03-02 20:51:32 +00:00
libnotify
librsvg # Because it uses SVG icons
udisks2
];
2021-03-02 20:51:32 +00:00
propagatedBuildInputs = [
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-02 20:51:32 +00:00
checkInputs = [
2019-03-03 23:10:07 +00:00
keyutils
2021-04-10 01:00:25 +01:00
nose
2019-03-03 23:10:07 +00:00
];
checkPhase = ''
nosetests
'';
meta = with lib; {
2021-03-02 20:51:32 +00:00
homepage = "https://github.com/coldfix/udiskie";
description = "Removable disk automounter for udisks";
2021-03-02 20:51:32 +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)
'';
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
};
}