1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 7 # build time 8 pdm-backend, 9 10 # runtime 11 packaging, 12 platformdirs, 13 14 # tests 15 pytestCheckHook, 16}: 17 18let 19 pname = "findpython"; 20 version = "0.7.0"; 21in 22buildPythonPackage { 23 inherit pname version; 24 pyproject = true; 25 26 src = fetchPypi { 27 inherit pname version; 28 hash = "sha256-izFkfHY1J3mjwaCAZpm2jmp73AtcLd2a8qB6DUDGc9w="; 29 }; 30 31 build-system = [ pdm-backend ]; 32 33 dependencies = [ 34 packaging 35 platformdirs 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "findpython" ]; 41 42 meta = with lib; { 43 description = "Utility to find python versions on your system"; 44 mainProgram = "findpython"; 45 homepage = "https://github.com/frostming/findpython"; 46 changelog = "https://github.com/frostming/findpython/releases/tag/${version}"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ hexa ]; 49 }; 50}