Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 coverage, 5 ddt, 6 fetchFromGitHub, 7 mock, 8 pytestCheckHook, 9 requests, 10}: 11 12buildPythonPackage rec { 13 pname = "codecov"; 14 version = "2.1.13"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "codecov"; 19 repo = "codecov-python"; 20 rev = "refs/tags/v${version}"; 21 sha256 = "sha256-cZEpAw8uv/XGiGzdBZ9MnabNaTP0did2GT+BkKMJM/E="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 coverage 27 ]; 28 29 nativeCheckInputs = [ 30 ddt 31 mock 32 pytestCheckHook 33 ]; 34 35 pytestFlagsArray = [ "tests/test.py" ]; 36 37 disabledTests = [ 38 # No git repo available and network 39 "test_bowerrc_none" 40 "test_prefix" 41 "test_send" 42 ]; 43 44 pythonImportsCheck = [ "codecov" ]; 45 46 meta = with lib; { 47 description = "Python report uploader for Codecov"; 48 mainProgram = "codecov"; 49 homepage = "https://codecov.io/"; 50 license = licenses.asl20; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}