mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
34 lines
703 B
Nix
34 lines
703 B
Nix
{ buildPythonApplication
|
|
, lib
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, json5
|
|
, packaging
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "fortls";
|
|
version = "2.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fortran-lang";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-kFk2Dlnb0FXM3Ysvsy+g2AAMgpWmwzxuyJPovDm/FJU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ json5 packaging ];
|
|
|
|
doCheck = true;
|
|
checkPhase = "$out/bin/fortls --help 1>/dev/null";
|
|
|
|
meta = with lib; {
|
|
description = "Fortran Language Server ";
|
|
homepage = "https://github.com/fortran-lang/fortls";
|
|
license = [ licenses.mit ];
|
|
maintainers = [ maintainers.sheepforce ];
|
|
};
|
|
}
|