1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 pytestCheckHook,
6 rustPlatform,
7}:
8
9buildPythonPackage rec {
10 pname = "test-results-parser";
11 version = "0.5.4";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit version;
16 pname = "test_results_parser";
17 hash = "sha256-L7/YCaLB90Y2AUaAm23zBpDJkkY9fUPnsf7THBp8FbQ=";
18 };
19
20 cargoDeps = rustPlatform.fetchCargoVendor {
21 inherit pname version src;
22 hash = "sha256-v82SRGqdcwyaRYpQhDETA/UZYSGD+FBZpysU7zfulrM=";
23 };
24
25 nativeBuildInputs = with rustPlatform; [
26 cargoSetupHook
27 maturinBuildHook
28 ];
29
30 pythonImportsCheck = [
31 "test_results_parser"
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 ];
37
38 meta = {
39 description = "Codecov test results parser";
40 homepage = "https://github.com/codecov/test-results-parser";
41 license = lib.licenses.fsl11Asl20;
42 maintainers = with lib.maintainers; [ veehaitch ];
43 };
44}