about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/codecov/default.nix
blob: c6af62860d4b6629576b4739d46a5f025d7e7e08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib
, buildPythonPackage
, coverage
, ddt
, fetchFromGitHub
, mock
, pytestCheckHook
, requests
}:

buildPythonPackage rec {
  pname = "codecov";
  version = "2.1.13";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "codecov";
    repo = "codecov-python";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-cZEpAw8uv/XGiGzdBZ9MnabNaTP0did2GT+BkKMJM/E=";
  };

  propagatedBuildInputs = [
    requests
    coverage
  ];

  nativeCheckInputs = [
    ddt
    mock
    pytestCheckHook
  ];

  pytestFlagsArray = [ "tests/test.py" ];

  disabledTests = [
    # No git repo available and network
    "test_bowerrc_none"
    "test_prefix"
    "test_send"
  ];

  pythonImportsCheck = [ "codecov" ];

  meta = with lib; {
    description = "Python report uploader for Codecov";
    homepage = "https://codecov.io/";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}