15 # optional-dependencies
19 buildPythonPackage rec {
20 pname = "setuptools-scm";
25 inherit pname version;
26 hash = "sha256-tfQ/9oAGaVlRk/0JiRVk7p0dfcsZbKtLJQbVOi4clcc=";
31 ] ++ lib.optionals (pythonOlder "3.11") [
35 propagatedBuildInputs = [
39 ] ++ lib.optionals (pythonOlder "3.11") [
43 passthru.optional-dependencies = {
49 pythonImportsCheck = [
53 # check in passthru.tests.pytest to escape infinite recursion on pytest
57 pytest = callPackage ./tests.nix { };
60 setupHook = ./setup-hook.sh;
63 changelog = "https://github.com/pypa/setuptools_scm/blob/${version}/CHANGELOG.md";
64 homepage = "https://github.com/pypa/setuptools_scm/";
65 description = "Handles managing your python package versions in scm metadata";
66 license = licenses.mit;
67 maintainers = with maintainers; [ nickcao ];