1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 argparse-manpage, 7 setuptools, 8 packaging, 9 pyxdg, 10}: 11 12buildPythonPackage rec { 13 pname = "show-in-file-manager"; 14 version = "1.1.5"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-7ROhgKHUj9iP3UxYv7yzhgJoZBo4gFGSyBTUE4cZLYQ="; 20 }; 21 22 nativeBuildInputs = [ 23 argparse-manpage 24 setuptools 25 ]; 26 27 propagatedBuildInputs = [ packaging ] ++ lib.optional (stdenv.hostPlatform.isLinux) pyxdg; 28 29 meta = with lib; { 30 homepage = "https://github.com/damonlynch/showinfilemanager"; 31 description = "Open the system file manager and select files in it"; 32 mainProgram = "showinfilemanager"; 33 longDescription = '' 34 Show in File Manager is a Python package to open the system file 35 manager and optionally select files in it. The point is not to 36 open the files, but to select them in the file manager, thereby 37 highlighting the files and allowing the user to quickly do 38 something with them. 39 ''; 40 license = licenses.mit; 41 maintainers = [ ]; 42 }; 43}