diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/show-in-file-manager')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/show-in-file-manager/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/show-in-file-manager/default.nix b/nixpkgs/pkgs/development/python-modules/show-in-file-manager/default.nix new file mode 100644 index 000000000000..e48268c7ef66 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/show-in-file-manager/default.nix @@ -0,0 +1,45 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, argparse-manpage +, setuptools +, packaging +, pyxdg +}: + +buildPythonPackage rec { + pname = "show-in-file-manager"; + version = "1.1.5"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-7ROhgKHUj9iP3UxYv7yzhgJoZBo4gFGSyBTUE4cZLYQ="; + }; + + nativeBuildInputs = [ + argparse-manpage + setuptools + ]; + + propagatedBuildInputs = [ + packaging + ] + ++ lib.optional (stdenv.isLinux) pyxdg; + + meta = with lib; { + homepage = "https://github.com/damonlynch/showinfilemanager"; + description = "Open the system file manager and select files in it"; + mainProgram = "showinfilemanager"; + 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; [ ]; + }; +} |