From 0f0a5e562d6ace33736dd51480a150876328287f Mon Sep 17 00:00:00 2001 From: Willy Date: Fri, 2 May 2025 19:56:16 +0200 Subject: [PATCH 1/2] python3Packages.lcov-cobertura: add missing build dependency setuptools_scm --- pkgs/development/python-modules/lcov-cobertura/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/lcov-cobertura/default.nix b/pkgs/development/python-modules/lcov-cobertura/default.nix index 739e4e1ae74e..b9e1551744c7 100644 --- a/pkgs/development/python-modules/lcov-cobertura/default.nix +++ b/pkgs/development/python-modules/lcov-cobertura/default.nix @@ -4,6 +4,7 @@ fetchPypi, pythonOlder, setuptools, + setuptools-scm, distutils, }: @@ -19,7 +20,10 @@ buildPythonPackage rec { hash = "sha256-76jiZPK93rt/UCTkrOErYz2dWQSLxkdCfR4blojItY8="; }; - build-system = [ setuptools ]; + build-system = [ + setuptools + setuptools-scm + ]; dependencies = [ distutils ]; pythonImportsCheck = [ "lcov_cobertura" ]; From 2d9a30e4cbc646abd0f574ef6682ae79ff9cf921 Mon Sep 17 00:00:00 2001 From: Willy Date: Fri, 2 May 2025 19:57:02 +0200 Subject: [PATCH 2/2] python3Packages.lcov-cobertura: fix build should really be PR'd upstream, patch for now --- pkgs/development/python-modules/lcov-cobertura/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/lcov-cobertura/default.nix b/pkgs/development/python-modules/lcov-cobertura/default.nix index b9e1551744c7..07c5f4aa4325 100644 --- a/pkgs/development/python-modules/lcov-cobertura/default.nix +++ b/pkgs/development/python-modules/lcov-cobertura/default.nix @@ -20,6 +20,12 @@ buildPythonPackage rec { hash = "sha256-76jiZPK93rt/UCTkrOErYz2dWQSLxkdCfR4blojItY8="; }; + # https://github.com/eriwen/lcov-to-cobertura-xml/issues/63 + postPatch = '' + substituteInPlace setup.cfg \ + --replace-fail 'License :: OSI Approved :: Apache Software License' "" + ''; + build-system = [ setuptools setuptools-scm