Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 59 lines
Nix
at flake-libs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, git, hatchling, setuptools-scm,}:
buildPythonPackage rec { pname = "hatch-vcs"; version = "0.4.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { pname = "hatch_vcs"; inherit version; hash = "sha256-CTgQdI/gHbDUUfq88sGsJojK79Iy1O3pZwkLHBsH2fc="; };
build-system = [ hatchling ];
dependencies = [ hatchling setuptools-scm ];
nativeCheckInputs = [ git pytestCheckHook ];
disabledTests = [ # incompatible with setuptools-scm>=7 # https://github.com/ofek/hatch-vcs/issues/8 "test_write" ] ++ lib.optionals (pythonOlder "3.11") [ # https://github.com/pypa/setuptools_scm/issues/1038, fixed in setuptools_scm@8.1.0 "test_basic" "test_root" "test_metadata" ];
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 ]; };}