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.
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, gitMinimal
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "gitlint";
|
|
version = "0.19.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jorisroovers";
|
|
repo = "gitlint";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4SGkkC4LjZXTDXwK6jMOIKXR1qX76CasOwSqv8XUrjs=";
|
|
};
|
|
|
|
# Upstream splitted the project into gitlint and gitlint-core to
|
|
# simplify the dependency handling
|
|
sourceRoot = "${src.name}/gitlint-core";
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
arrow
|
|
click
|
|
sh
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
gitMinimal
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"gitlint"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Linting for your git commit messages";
|
|
homepage = "https://jorisroovers.com/gitlint/";
|
|
changelog = "https://github.com/jorisroovers/gitlint/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ethancedwards8 fab ];
|
|
mainProgram = "gitlint";
|
|
};
|
|
}
|