From 1182f0c3e2d9a2fbfc50e189d8aabf19c5126a5a Mon Sep 17 00:00:00 2001 From: Vincent Haupert Date: Sat, 23 Nov 2024 12:27:12 +0100 Subject: [PATCH 1/2] python3Packages.test-results-parser: init at 0.5.1 --- .../test-results-parser/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/test-results-parser/default.nix diff --git a/pkgs/development/python-modules/test-results-parser/default.nix b/pkgs/development/python-modules/test-results-parser/default.nix new file mode 100644 index 000000000000..c14c5cff4180 --- /dev/null +++ b/pkgs/development/python-modules/test-results-parser/default.nix @@ -0,0 +1,44 @@ +{ + buildPythonPackage, + fetchPypi, + lib, + pytestCheckHook, + rustPlatform, +}: + +buildPythonPackage rec { + pname = "test-results-parser"; + version = "0.5.1"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "test_results_parser"; + hash = "sha256-DaUSTu4Hg9SbJwBd3PlMcIAm/o63Q1yM5E7dVxbOwM8="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit pname version src; + hash = "sha256-dhreAWm/Hses/N3XocYX7IZru9nYJqDrmTnJPkKaOwY="; + }; + + nativeBuildInputs = with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]; + + pythonImpotsCheck = [ + "test_results_parser" + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Codecov test results parser"; + homepage = "https://github.com/codecov/test-results-parser"; + license = lib.licenses.fsl11Asl20; + maintainers = with lib.maintainers; [ veehaitch ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 27e56d5cfedb..fe4356581467 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15767,6 +15767,8 @@ self: super: with self; { tesserocr = callPackage ../development/python-modules/tesserocr { }; + test-results-parser = callPackage ../development/python-modules/test-results-parser { }; + testcontainers = callPackage ../development/python-modules/testcontainers { }; testfixtures = callPackage ../development/python-modules/testfixtures { }; From d377d2b0a509cf67c5005053516b668e19ebd7bb Mon Sep 17 00:00:00 2001 From: Vincent Haupert Date: Sat, 23 Nov 2024 12:30:33 +0100 Subject: [PATCH 2/2] codecov-cli: init at 9.1.1 --- pkgs/by-name/co/codecov-cli/package.nix | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/co/codecov-cli/package.nix diff --git a/pkgs/by-name/co/codecov-cli/package.nix b/pkgs/by-name/co/codecov-cli/package.nix new file mode 100644 index 000000000000..63f7a7ce0457 --- /dev/null +++ b/pkgs/by-name/co/codecov-cli/package.nix @@ -0,0 +1,44 @@ +{ + fetchPypi, + lib, + python3Packages, +}: + +python3Packages.buildPythonApplication rec { + pname = "codecov-cli"; + version = "9.1.1"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-jaljYA2x2nZUOn9vy/CdtxfGjQKHtrtY13WmBdsICTA="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + pythonRelaxDeps = [ + "httpx" + "responses" + "tree-sitter" + ]; + + dependencies = with python3Packages; [ + click + httpx + ijson + pyyaml + regex + responses + test-results-parser + tree-sitter + ]; + + meta = { + description = "Codecov Command Line Interface"; + homepage = "https://github.com/codecov/codecov-cli"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ veehaitch ]; + }; +}