1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5
6# build time
7, pdm-backend
8
9# runtime
10, packaging
11
12# tests
13, pytestCheckHook
14}:
15
16let
17 pname = "findpython";
18 version = "0.4.0";
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-GLFNEVZ42hiuku4i1wAcwwkV6lMQU/dwEO4Fo5aA9Dg=";
29 };
30
31 nativeBuildInputs = [
32 pdm-backend
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}