summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/junit-xml/default.nix
blob: 5bc9d646e294c123b7711a1472d1970f8b52184e (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  six,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "junit-xml";
  version = "1.9";
  format = "setuptools";

  # Only a wheel on PyPI
  src = fetchFromGitHub {
    owner = "kyrus";
    repo = "python-junit-xml";
    # No tags...sigh
    rev = "856414648cbab3f64e69b856bc25cea8b9aa0377";
    sha256 = "1sg03mv7dk3x4mjxjg127vqjmx0ms7v3a5aibxrclxlhmdqcgvb2";
  };

  propagatedBuildInputs = [ six ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Creates JUnit XML test result documents that can be read by tools such as Jenkins";
    homepage = "https://github.com/kyrus/python-junit-xml";
    maintainers = with lib.maintainers; [ multun ];
    license = lib.licenses.mit;
  };
}