about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/junitparser/default.nix
blob: 11bd1d60ab00f28750f82cfa2de48a05ad15f807 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, python
}:

buildPythonPackage rec {
  pname = "junitparser";
  version = "1.4.1";

  src = fetchFromGitHub {
    owner = "gastlygem";
    repo = pname;
    rev = version;
    sha256 = "16xwayr0rbp7xdg7bzmyf8s7al0dhkbmkcnil66ax7r8bznp5lmp";
  };

  propagatedBuildInputs = [ future ];

  checkPhase = ''
    ${python.interpreter} test.py
  '';

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