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