16 # optional-dependencies
20 buildPythonPackage rec {
21 pname = "setuptools-scm";
26 pname = "setuptools_scm";
28 hash = "sha256-Qt6htldxy6k7elFdZaZdgkblYHaKZrkQalksjn8myKc=";
31 build-system = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
37 ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
39 optional-dependencies = {
43 pythonImportsCheck = [ "setuptools_scm" ];
45 # check in passthru.tests.pytest to escape infinite recursion on pytest
49 pytest = callPackage ./tests.nix { };
52 setupHook = ./setup-hook.sh;
55 changelog = "https://github.com/pypa/setuptools_scm/blob/${version}/CHANGELOG.md";
56 homepage = "https://github.com/pypa/setuptools_scm/";
57 description = "Handles managing your python package versions in scm metadata";
58 license = licenses.mit;
59 maintainers = with maintainers; [ nickcao ];