1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7 setuptools-scm, 8 distutils, 9}: 10 11buildPythonPackage rec { 12 pname = "lcov-cobertura"; 13 version = "2.1.1"; 14 pyproject = true; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 pname = "lcov_cobertura"; 19 inherit version; 20 hash = "sha256-76jiZPK93rt/UCTkrOErYz2dWQSLxkdCfR4blojItY8="; 21 }; 22 23 # https://github.com/eriwen/lcov-to-cobertura-xml/issues/63 24 postPatch = '' 25 substituteInPlace setup.cfg \ 26 --replace-fail 'License :: OSI Approved :: Apache Software License' "" 27 ''; 28 29 build-system = [ 30 setuptools 31 setuptools-scm 32 ]; 33 dependencies = [ distutils ]; 34 35 pythonImportsCheck = [ "lcov_cobertura" ]; 36 37 meta = { 38 description = "Converts code coverage from lcov format to Cobertura's XML format"; 39 mainProgram = "lcov_cobertura"; 40 homepage = "https://eriwen.github.io/lcov-to-cobertura-xml/"; 41 license = lib.licenses.asl20; 42 }; 43}