Files
Martin Weinelt bd6fb4b88d treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION setters
The setuptools-scm setup script sets the env var to the derivation
version already.
2026-07-03 03:17:43 +02:00

41 lines
905 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-scm,
packaging,
setuptools-scm,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "nipreps-versions";
version = "1.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "nipreps";
repo = "version-schemes";
tag = version;
hash = "sha256-B2wtLurzgk59kTooH51a2dewK7aEyA0dAm64Wp+tqhM=";
};
nativeBuildInputs = [
flit-scm
setuptools-scm
];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nipreps_versions" ];
meta = {
description = "Setuptools_scm plugin for nipreps version schemes";
homepage = "https://github.com/nipreps/version-schemes";
changelog = "https://github.com/nipreps/version-schemes/blob/${src.rev}/CHANGES.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}