nixpkgs/pkgs/applications/misc/udiskie/default.nix

63 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, asciidoc-full, gettext
, gobject-introspection, gtk3, libappindicator-gtk3, libnotify, librsvg
, udisks2, wrapGAppsHook
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "udiskie";
2020-02-10 20:15:56 +00:00
version = "2.1.0";
src = fetchFromGitHub {
owner = "coldfix";
repo = "udiskie";
rev = version;
2020-02-10 20:15:56 +00:00
sha256 = "1d8fz0jrnpgldvdwpl27az2kjhpbcjd8nqn3qc2v6682q12p3jqb";
};
nativeBuildInputs = [
gettext
asciidoc-full # For building man page.
gobject-introspection
wrapGAppsHook
];
buildInputs = [
librsvg # required for loading svg icons (udiskie uses svg icons)
gobject-introspection
libnotify
gtk3
udisks2
libappindicator-gtk3
];
propagatedBuildInputs = with python3Packages; [
docopt
pygobject3
pyyaml
];
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
'';
meta = with stdenv.lib; {
description = "Removable disk automounter for udisks";
license = licenses.mit;
homepage = "https://github.com/coldfix/udiskie";
maintainers = with maintainers; [ AndersonTorres ];
};
}