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