aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/junit-xml/default.nix
blob: 7c5ffc9fad5afc2e118bba6cf95dbc516becbf1f (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
{ lib
, buildPythonPackage
, fetchPypi
, six
, pytest
, pytest-sugar
}:

buildPythonPackage rec {
  pname = "junit-xml";
  version = "1.8";

  src = fetchPypi {
    inherit pname version;
    sha256 = "08fw86azza6d3l3nx34kq69cpwmmfqpn7xrb8pdlxmhr1941qbv0";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ pytest pytest-sugar ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    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 maintainers; [ multun ];
    license = licenses.mit;
  };
}