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