diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-03-09 01:29:16 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-03-09 01:30:17 +0100 |
commit | ca29761ef5bc38947d9048b6dc8f3e8c795b6a34 (patch) | |
tree | 5778d49ccb6d23c0620300c7d5e3c00268db7488 /pkgs/applications/version-management/gitlint | |
parent | ea0070a5189adcd3e16bd15f0609d34b5abbbcfe (diff) | |
download | nixlib-ca29761ef5bc38947d9048b6dc8f3e8c795b6a34.tar nixlib-ca29761ef5bc38947d9048b6dc8f3e8c795b6a34.tar.gz nixlib-ca29761ef5bc38947d9048b6dc8f3e8c795b6a34.tar.bz2 nixlib-ca29761ef5bc38947d9048b6dc8f3e8c795b6a34.tar.lz nixlib-ca29761ef5bc38947d9048b6dc8f3e8c795b6a34.tar.xz nixlib-ca29761ef5bc38947d9048b6dc8f3e8c795b6a34.tar.zst nixlib-ca29761ef5bc38947d9048b6dc8f3e8c795b6a34.zip |
gitlint: 0.18.0 -> 0.19.0
Diffstat (limited to 'pkgs/applications/version-management/gitlint')
-rw-r--r-- | pkgs/applications/version-management/gitlint/default.nix | 23 | ||||
-rw-r--r-- | pkgs/applications/version-management/gitlint/dont-try-to-use-git.diff | 14 |
2 files changed, 29 insertions, 8 deletions
diff --git a/pkgs/applications/version-management/gitlint/default.nix b/pkgs/applications/version-management/gitlint/default.nix index 6adb5bdc7a3f..d32de426fefa 100644 --- a/pkgs/applications/version-management/gitlint/default.nix +++ b/pkgs/applications/version-management/gitlint/default.nix @@ -7,19 +7,32 @@ python3.pkgs.buildPythonApplication rec { pname = "gitlint"; - version = "0.18.0"; + version = "0.19.0"; + format = "pyproject"; src = fetchFromGitHub { owner = "jorisroovers"; repo = "gitlint"; rev = "v${version}"; - sha256 = "sha256-MmXzrooN+C9MUaAz4+IEGkGJWHbgvPMSLHgssM0wyN8="; + sha256 = "sha256-w4v6mcjCX0V3Mj1K23ErpXdyEKQcA4vykns7UwNBEZ4="; }; + patches = [ + # otherwise hatch tries to run git to collect some metadata about the build + ./dont-try-to-use-git.diff + ]; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + # Upstream splitted the project into gitlint and gitlint-core to # simplify the dependency handling sourceRoot = "source/gitlint-core"; + nativeBuildInputs = with python3.pkgs; [ + hatch-vcs + hatchling + ]; + propagatedBuildInputs = with python3.pkgs; [ arrow click @@ -31,12 +44,6 @@ python3.pkgs.buildPythonApplication rec { pytestCheckHook ]; - postPatch = '' - # We don't need gitlint-core - substituteInPlace setup.py \ - --replace "'gitlint-core[trusted-deps]==' + version," "" - ''; - pythonImportsCheck = [ "gitlint" ]; diff --git a/pkgs/applications/version-management/gitlint/dont-try-to-use-git.diff b/pkgs/applications/version-management/gitlint/dont-try-to-use-git.diff new file mode 100644 index 000000000000..4d52cb57736f --- /dev/null +++ b/pkgs/applications/version-management/gitlint/dont-try-to-use-git.diff @@ -0,0 +1,14 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -61,10 +63,3 @@ include = [ + exclude = [ + "/gitlint/tests", # + ] +- +-[tool.hatch.metadata.hooks.vcs.urls] +-Homepage = "https://jorisroovers.github.io/gitlint" +-Documentation = "https://jorisroovers.github.io/gitlint" +-Source = "https://github.com/jorisroovers/gitlint/tree/main/gitlint-core" +-Changelog = "https://github.com/jorisroovers/gitlint/blob/main/CHANGELOG.md" +-'Source Commit' = "https://github.com/jorisroovers/gitlint/tree/{commit_hash}/gitlint-core" +\ No newline at end of file |