···1-{ lib, buildPythonPackage, fetchPypi, toml, tomli }:
00000023buildPythonPackage rec {
4 pname = "setuptools-scm";
5- # don't update to 6.1.0 or 6.2.0, releases were pulled because of regression
6- # https://github.com/pypa/setuptools_scm/issues/615
7- version = "6.0.1";
89 src = fetchPypi {
10 pname = "setuptools_scm";
11 inherit version;
12- sha256 = "sha256-0ZJaacsH6bKUFqJ1ufrbAJojwUis6QWy+yIGSabBjpI=";
13 };
1415- postPatch = ''
16- substituteInPlace setup.cfg \
17- --replace "tomli~=1.0.0" "tomli>=1.0.0"
18- '';
1920- # TODO: figure out why both toml and tomli are needed when only tomli is listed in setuptools-scm
21- # if not both are listed some packages like zipp silently fallback to a 0.0.0 version number and break version pins in other packages
22- propagatedBuildInputs = [ toml tomli ];
2324- # Requires pytest, circular dependency
25 doCheck = false;
26- pythonImportsCheck = [ "setuptools_scm" ];
0002728 meta = with lib; {
29 homepage = "https://github.com/pypa/setuptools_scm/";
···96 "setuptools_scm"
97 "setuptools-scm"
98 "toml" # Toml is an extra for setuptools-scm
00099 ];
100 baseBuildInputs = lib.optional (! lib.elem name skipSetupToolsSCM) pythonPackages.setuptools-scm;
101 format = if isDirectory || isGit || isUrl then "pyproject" else fileInfo.format;
···96 "setuptools_scm"
97 "setuptools-scm"
98 "toml" # Toml is an extra for setuptools-scm
99+ "packaging"
100+ "six"
101+ "pyparsing"
102 ];
103 baseBuildInputs = lib.optional (! lib.elem name skipSetupToolsSCM) pythonPackages.setuptools-scm;
104 format = if isDirectory || isGit || isUrl then "pyproject" else fileInfo.format;