Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4819,6 +4819,12 @@
githubId = 6487079;
name = "Dane Rieber";
};
concatime = {
email = "issam.e.maghni@mailbox.org";
github = "concatime";
githubId = 26262387;
name = "Issam E. Maghni";
};
confus = {
email = "con-f-use@gmx.net";
github = "con-f-use";
Expand Down
55 changes: 55 additions & 0 deletions pkgs/development/python-modules/unity-test-parser/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
junit-xml,
approvaltests,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "unity-test-parser";
version = "0.1.1";
pyproject = true;

src = fetchFromGitHub {
owner = "ETCLabs";
repo = "unity-test-parser";
tag = "v${version}";
hash = "sha256-x5kbNvQn1RxGaHGnXWKAkaBfwCpGW7lHlkHaYRGqCyE=";
};

patches = [
# https://github.com/ETCLabs/unity-test-parser/pull/4
(fetchpatch {
url = "https://github.com/ETCLabs/unity-test-parser/commit/7f0a7bcacdffd1b89c7c87bc1be3e37482344d21.patch";
hash = "sha256-IWGSXFj+ZtAz9X6KTMuZ670m/2WifQfSCi5jqxegP6s=";
})

# https://github.com/ETCLabs/unity-test-parser/pull/5
(fetchpatch {
url = "https://github.com/ETCLabs/unity-test-parser/commit/6ac6de19ccd7e42d0da1a7b05031528fd1491e57.patch";
hash = "sha256-3xAuKRJyJgzVdzIIosFW5DnAczdGcxM3il5uLsvzyfs=";
})
];

build-system = [ setuptools ];

dependencies = [ junit-xml ];

nativeCheckInputs = [
approvaltests
pytestCheckHook
];

pythonImportsCheck = [ "unity_test_parser" ];

meta = {
description = "Unity test parser written in Python";
homepage = "https://github.com/ETCLabs/unity-test-parser";
changelog = "https://github.com/ETCLabs/unity-test-parser/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ concatime ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18124,6 +18124,8 @@ self: super: with self; {

unittest-xml-reporting = callPackage ../development/python-modules/unittest-xml-reporting { };

unity-test-parser = callPackage ../development/python-modules/unity-test-parser { };

univers = callPackage ../development/python-modules/univers { };

universal-pathlib = callPackage ../development/python-modules/universal-pathlib { };
Expand Down