2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, asciidoc-full, gettext
|
2019-09-12 14:25:05 +00:00
|
|
|
, gobject-introspection, gtk3, libappindicator-gtk3, libnotify, librsvg
|
2017-12-31 00:50:56 +00:00
|
|
|
, udisks2, wrapGAppsHook
|
2019-03-03 12:43:28 +00:00
|
|
|
, python3Packages
|
2017-12-31 00:50:56 +00:00
|
|
|
}:
|
|
|
|
|
2019-03-03 12:43:28 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "udiskie";
|
2020-05-31 19:24:42 +00:00
|
|
|
version = "2.2.0";
|
2016-09-10 10:16:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coldfix";
|
|
|
|
repo = "udiskie";
|
|
|
|
rev = version;
|
2020-05-31 19:24:42 +00:00
|
|
|
sha256 = "0kn5w6bm3rmbszphzbxpjfnkawb2naa230svzkpmh3n6dcdvk4qa";
|
2016-09-10 10:16:39 +00:00
|
|
|
};
|
|
|
|
|
2019-03-03 12:43:28 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2016-09-10 10:16:39 +00:00
|
|
|
asciidoc-full # For building man page.
|
2019-03-03 12:43:28 +00:00
|
|
|
gobject-introspection
|
2016-09-10 10:16:39 +00:00
|
|
|
wrapGAppsHook
|
2019-03-03 12:43:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-10-01 11:12:56 +00:00
|
|
|
librsvg # required for loading svg icons (udiskie uses svg icons)
|
2019-03-03 12:43:28 +00:00
|
|
|
gobject-introspection
|
|
|
|
libnotify
|
|
|
|
gtk3
|
|
|
|
udisks2
|
|
|
|
libappindicator-gtk3
|
2016-09-10 10:16:39 +00:00
|
|
|
];
|
|
|
|
|
2019-03-03 12:43:28 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
docopt
|
|
|
|
pygobject3
|
|
|
|
pyyaml
|
2016-09-10 10:16:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = "make -C doc";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
cp -v doc/udiskie.8 $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
2019-03-03 23:10:07 +00:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
nose
|
|
|
|
keyutils
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
2016-09-10 10:16:39 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-09-10 10:16:39 +00:00
|
|
|
description = "Removable disk automounter for udisks";
|
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/coldfix/udiskie";
|
2016-09-10 10:16:39 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|