2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
argparse-manpage,
|
|
|
|
setuptools,
|
|
|
|
packaging,
|
|
|
|
pyxdg,
|
2023-02-22 10:55:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "show-in-file-manager";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.1.5";
|
|
|
|
pyproject = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-7ROhgKHUj9iP3UxYv7yzhgJoZBo4gFGSyBTUE4cZLYQ=";
|
2023-02-22 10:55:15 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
argparse-manpage
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ packaging ] ++ lib.optional (stdenv.isLinux) pyxdg;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/damonlynch/showinfilemanager";
|
|
|
|
description = "Open the system file manager and select files in it";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "showinfilemanager";
|
2023-02-22 10:55:15 +00:00
|
|
|
longDescription = ''
|
|
|
|
Show in File Manager is a Python package to open the system file
|
|
|
|
manager and optionally select files in it. The point is not to
|
|
|
|
open the files, but to select them in the file manager, thereby
|
|
|
|
highlighting the files and allowing the user to quickly do
|
|
|
|
something with them.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|