https://github.com/ofek/hatch-vcs/releases/tag/v0.5.0 This commit was automatically generated using update-python-libraries.
52 lines
1.0 KiB
Nix
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 ];
|
|
};
|
|
}
|