1{ lib, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }:
2
3buildPythonPackage rec {
4 pname = "codecov";
5 version = "2.1.11";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "6cde272454009d27355f9434f4e49f238c0273b216beda8472a65dc4957f473b";
10 };
11
12 checkInputs = [ unittest2 ]; # Tests only
13
14 propagatedBuildInputs = [ requests coverage ];
15
16 postPatch = ''
17 sed -i 's/, "argparse"//' setup.py
18 '';
19
20 # No tests in archive
21 doCheck = false;
22
23 meta = with lib; {
24 description = "Python report uploader for Codecov";
25 homepage = "https://codecov.io/";
26 license = licenses.asl20;
27 };
28}