mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
gitlint: 0.16.0 -> 0.17.0
This commit is contained in:
parent
44499330ff
commit
e9917d53cf
@ -5,58 +5,40 @@
|
|||||||
, python3
|
, python3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
py = python3.override {
|
|
||||||
packageOverrides = self: super: {
|
|
||||||
|
|
||||||
click = super.click.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "8.0.1";
|
|
||||||
src = oldAttrs.src.override {
|
|
||||||
inherit version;
|
|
||||||
sha256 = "0ymdyf37acq4qxh038q0xx44qgj6y2kf0jd0ivvix6qij88w214c";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
arrow = super.arrow.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "1.2.0";
|
|
||||||
src = oldAttrs.src.override {
|
|
||||||
inherit version;
|
|
||||||
sha256 = "0x70a057dqki2z1ny491ixbg980hg4lihc7g1zmy69g4v6xjkz0n";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
with py.pkgs;
|
|
||||||
|
|
||||||
buildPythonApplication rec {
|
|
||||||
pname = "gitlint";
|
pname = "gitlint";
|
||||||
version = "0.16.0";
|
version = "0.17.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jorisroovers";
|
owner = "jorisroovers";
|
||||||
repo = "gitlint";
|
repo = "gitlint";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1j6gfgqin5dmqd2qq0vib55d2r07s9sy4hwrvwlichxx5jjwncly";
|
sha256 = "sha256-RXBMb43BBiJ23X0eKC1kqgLw8iFKJnP5iejY0AWcUrU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
# Upstream splitted the project into gitlint and gitlint-core to
|
||||||
wheel
|
# simplify the dependency handling
|
||||||
];
|
sourceRoot = "source/gitlint-core";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
arrow
|
arrow
|
||||||
click
|
click
|
||||||
sh
|
sh
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = ''
|
checkInputs = with python3.pkgs; [
|
||||||
export PATH="$out/bin:$PATH"
|
gitMinimal
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# We don't need gitlint-core
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "'gitlint-core[trusted-deps]==' + version," ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
pythonImportsCheck = [
|
||||||
gitMinimal
|
"gitlint"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user