Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / codecov / default.nix
blobccc95b894f39a49843b3d0088206478922c4b958
1 { lib
2 , buildPythonPackage
3 , coverage
4 , ddt
5 , fetchFromGitHub
6 , mock
7 , pytestCheckHook
8 , requests
9 }:
11 buildPythonPackage rec {
12   pname = "codecov";
13   version = "2.1.13";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "codecov";
18     repo = "codecov-python";
19     rev = "refs/tags/v${version}";
20     sha256 = "sha256-cZEpAw8uv/XGiGzdBZ9MnabNaTP0did2GT+BkKMJM/E=";
21   };
23   propagatedBuildInputs = [
24     requests
25     coverage
26   ];
28   nativeCheckInputs = [
29     ddt
30     mock
31     pytestCheckHook
32   ];
34   pytestFlagsArray = [ "tests/test.py" ];
36   disabledTests = [
37     # No git repo available and network
38     "test_bowerrc_none"
39     "test_prefix"
40     "test_send"
41   ];
43   pythonImportsCheck = [ "codecov" ];
45   meta = with lib; {
46     description = "Python report uploader for Codecov";
47     mainProgram = "codecov";
48     homepage = "https://codecov.io/";
49     license = licenses.asl20;
50     maintainers = with maintainers; [ fab ];
51   };