Files
nixpkgs/pkgs/development/python-modules/hatch-vcs/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

49 lines
1017 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
gitMinimal,
hatchling,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "hatch-vcs";
version = "0.5.0";
pyproject = true;
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 ];
};
}