Files
nixpkgs/pkgs/development/python-modules/hatch-vcs/default.nix
Martin Weinelt 30c90446fb python3Packages.hatch-vcs: 0.4.0 -> 0.5.0
https://github.com/ofek/hatch-vcs/releases/tag/v0.5.0

This commit was automatically generated using update-python-libraries.
2025-08-09 18:59:47 +02: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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}