1{ lib
2, buildPythonPackage
3, coverage
4, ddt
5, fetchFromGitHub
6, mock
7, pytestCheckHook
8, requests
9}:
10
11buildPythonPackage rec {
12 pname = "codecov";
13 version = "2.1.12";
14
15 src = fetchFromGitHub {
16 owner = "codecov";
17 repo = "codecov-python";
18 rev = "v${version}";
19 sha256 = "0bdk1cp3hxydpx9knqfv88ywwzw7yqhywi0inxjd6x53qh75prqy";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 coverage
25 ];
26
27 checkInputs = [
28 ddt
29 mock
30 pytestCheckHook
31 ];
32
33 pytestFlagsArray = [ "tests/test.py" ];
34
35 disabledTests = [
36 # No git repo available and network
37 "test_bowerrc_none"
38 "test_prefix"
39 "test_send"
40 ];
41
42 pythonImportsCheck = [ "codecov" ];
43
44 meta = with lib; {
45 description = "Python report uploader for Codecov";
46 homepage = "https://codecov.io/";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ fab ];
49 };
50}