about summary refs log tree commit diff
path: root/pkgs/development/python-modules/junitparser/default.nix
blob: 490f919a712a197627154f8a6dc3b6c27bb99970 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, glibcLocales
, lxml
, unittestCheckHook
}:

buildPythonPackage rec {
  pname = "junitparser";
  version = "2.8.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "weiwei";
    repo = pname;
    rev = version;
    hash = "sha256-rhDP05GSWT4K6Z2ip8C9+e3WbvBJOwP0vctvANBs7cw=";
  };

  propagatedBuildInputs = [ future ];

  nativeCheckInputs = [ unittestCheckHook lxml glibcLocales ];

  unittestFlagsArray = [ "-v" ];

  meta = with lib; {
    description = "Manipulates JUnit/xUnit Result XML files";
    mainProgram = "junitparser";
    license = licenses.asl20;
    homepage = "https://github.com/weiwei/junitparser";
    maintainers = with maintainers; [ multun ];
  };
}