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.13"; 14 15 src = fetchFromGitHub { 16 owner = "codecov"; 17 repo = "codecov-python"; 18 rev = "refs/tags/v${version}"; 19 sha256 = "sha256-cZEpAw8uv/XGiGzdBZ9MnabNaTP0did2GT+BkKMJM/E="; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 coverage 25 ]; 26 27 nativeCheckInputs = [ 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}