1{
2 buildPythonApplication,
3 lib,
4 fetchFromGitHub,
5 setuptools-scm,
6 json5,
7 packaging,
8}:
9
10buildPythonApplication rec {
11 pname = "fortls";
12 version = "3.2.2";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "fortran-lang";
17 repo = pname;
18 tag = "v${version}";
19 hash = "sha256-cUZBr+dtTFbd68z6ts4quIPp9XYMikUBrCq+icrZ1KU=";
20 };
21
22 nativeBuildInputs = [ setuptools-scm ];
23
24 propagatedBuildInputs = [
25 json5
26 packaging
27 ];
28
29 doCheck = true;
30 checkPhase = "$out/bin/fortls --help 1>/dev/null";
31
32 meta = with lib; {
33 description = "Fortran Language Server";
34 mainProgram = "fortls";
35 homepage = "https://github.com/fortran-lang/fortls";
36 license = [ licenses.mit ];
37 maintainers = [ maintainers.sheepforce ];
38 };
39}