33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
54 lines
1,013 B
Nix
54 lines
1,013 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, git
|
|
, hatchling
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hatch-vcs";
|
|
version = "0.3.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "hatch_vcs";
|
|
inherit version;
|
|
sha256 = "sha256-zsUQfPzkgsZ/i8lvGLvDIMmqDQaBgOFK0xe77loVP+4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
hatchling
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# incompatible with setuptools-scm>=7
|
|
# https://github.com/ofek/hatch-vcs/issues/8
|
|
"test_write"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"hatch_vcs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A 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 ];
|
|
};
|
|
}
|