2016-09-10 12:16:39 +02:00
|
|
|
{ stdenv, fetchFromGitHub, asciidoc-full, gettext
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection, gtk3, hicolor-icon-theme, libappindicator-gtk3, libnotify, librsvg
|
2017-12-31 01:50:56 +01:00
|
|
|
, udisks2, wrapGAppsHook
|
2019-03-03 13:43:28 +01:00
|
|
|
, python3Packages
|
2017-12-31 01:50:56 +01:00
|
|
|
}:
|
|
|
|
|
2019-03-03 13:43:28 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "udiskie";
|
2019-02-18 03:10:22 +01:00
|
|
|
version = "1.7.7";
|
2016-09-10 12:16:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coldfix";
|
|
|
|
repo = "udiskie";
|
|
|
|
rev = version;
|
2019-02-18 03:10:22 +01:00
|
|
|
sha256 = "1j17z26vy44il2s9zgchvhq280vq8ag64ddi35f35b444wz2azlb";
|
2016-09-10 12:16:39 +02:00
|
|
|
};
|
|
|
|
|
2019-03-03 13:43:28 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2016-09-10 12:16:39 +02:00
|
|
|
asciidoc-full # For building man page.
|
2019-03-03 13:43:28 +01:00
|
|
|
gobject-introspection
|
2016-09-10 12:16:39 +02:00
|
|
|
wrapGAppsHook
|
2019-03-03 13:43:28 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
hicolor-icon-theme
|
2016-10-01 13:12:56 +02:00
|
|
|
librsvg # required for loading svg icons (udiskie uses svg icons)
|
2019-03-03 13:43:28 +01:00
|
|
|
gobject-introspection
|
|
|
|
libnotify
|
|
|
|
gtk3
|
|
|
|
udisks2
|
|
|
|
libappindicator-gtk3
|
2016-09-10 12:16:39 +02:00
|
|
|
];
|
|
|
|
|
2019-03-03 13:43:28 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
docopt
|
|
|
|
pygobject3
|
|
|
|
pyyaml
|
2016-09-10 12:16:39 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = "make -C doc";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
cp -v doc/udiskie.8 $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
2019-03-04 00:10:07 +01:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
nose
|
|
|
|
keyutils
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
2016-09-10 12:16:39 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Removable disk automounter for udisks";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/coldfix/udiskie;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|