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