Files
nixpkgs/pkgs/development/python-modules/hatch-vcs/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
gitMinimal,
hatchling,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "hatch-vcs";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "hatch_vcs";
inherit version;
hash = "sha256-A5X6EmlANAIVCQw0Siv04qd7y+faqxb0Gze5jJWAn/k=";
};
build-system = [ hatchling ];
dependencies = [
hatchling
setuptools-scm
];
nativeCheckInputs = [
gitMinimal
pytestCheckHook
];
disabledTests = [
# reacts to our setup-hook pretending a version
"test_custom_tag_pattern_get_version"
];
pythonImportsCheck = [ "hatch_vcs" ];
meta = {
changelog = "https://github.com/ofek/hatch-vcs/releases/tag/v${version}";
description = "Plugin for Hatch that uses your preferred version control system (like Git) to determine project versions";
homepage = "https://github.com/ofek/hatch-vcs";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cpcloud ];
};
}