at master 1.1 kB view raw
1{ 2 buildPythonPackage, 3 lib, 4 fetchFromGitHub, 5 6 # build-system 7 poetry-core, 8 9 # checks 10 mock, 11 pytestCheckHook, 12 sh, 13 coverage, 14 docopt, 15 requests, 16 git, 17 responses, 18}: 19 20buildPythonPackage rec { 21 pname = "coveralls"; 22 version = "4.0.1"; 23 pyproject = true; 24 25 src = fetchFromGitHub { 26 owner = "TheKevJames"; 27 repo = "coveralls-python"; 28 tag = version; 29 hash = "sha256-1MjP99NykWNDyzWwZopLAzZ93vGX1mXEU+m+zvOBIZA="; 30 }; 31 32 build-system = [ poetry-core ]; 33 34 dependencies = [ 35 coverage 36 docopt 37 requests 38 ]; 39 40 nativeCheckInputs = [ 41 mock 42 sh 43 pytestCheckHook 44 responses 45 git 46 ]; 47 48 preCheck = '' 49 export PATH=${coverage}/bin:$PATH 50 ''; 51 52 disabledTests = [ 53 # requires .git in checkout 54 "test_git" 55 # try to run unwrapped python 56 "test_5" 57 "test_7" 58 "test_11" 59 ]; 60 61 meta = { 62 description = "Show coverage stats online via coveralls.io"; 63 mainProgram = "coveralls"; 64 homepage = "https://github.com/coveralls-clients/coveralls-python"; 65 license = lib.licenses.mit; 66 }; 67}