nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "codecov-cli";
9 version = "10.4.0";
10 pyproject = true;
11
12 src =
13 (fetchFromGitHub {
14 owner = "codecov";
15 repo = "codecov-cli";
16 tag = "v${version}";
17 hash = "sha256-R1GFQ81N/e2OX01oSs8Xs+PM0JKVZofiUPADVdxCzWk=";
18 fetchSubmodules = true;
19 }).overrideAttrs
20 (_: {
21 env = {
22 GIT_CONFIG_COUNT = 1;
23 GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf";
24 GIT_CONFIG_VALUE_0 = "git@github.com:";
25 };
26 });
27
28 build-system = with python3Packages; [ setuptools ];
29
30 pythonRelaxDeps = [
31 "httpx"
32 "responses"
33 "test-results-parser"
34 "tree-sitter"
35 ];
36
37 dependencies = with python3Packages; [
38 click
39 httpx
40 ijson
41 pyyaml
42 regex
43 responses
44 test-results-parser
45 tree-sitter
46 sentry-sdk
47 wrapt
48 ];
49
50 meta = {
51 description = "Codecov Command Line Interface";
52 homepage = "https://github.com/codecov/codecov-cli";
53 license = lib.licenses.asl20;
54 maintainers = with lib.maintainers; [ veehaitch ];
55 };
56}