about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/show-in-file-manager/default.nix
blob: c77d547bf6f8462ab51a91572ea186f702737778 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, importlib-metadata
, packaging
, pyxdg
}:

buildPythonPackage rec {
  pname = "show-in-file-manager";
  version = "1.1.4";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-FdFuSodbniF7A40C8CnDgAxKatZF4/c8nhB+omurOts=";
  };

  propagatedBuildInputs = [
    packaging
  ]
  ++ lib.optional (stdenv.isLinux) pyxdg
  ++ lib.optional (pythonOlder "3.8") importlib-metadata;

  meta = with lib; {
    homepage = "https://github.com/damonlynch/showinfilemanager";
    description = "Open the system file manager and select files in it";
    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; [ ];
  };
}