2017-07-03 19:12:46 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "codecov";
|
2020-10-25 09:06:51 +00:00
|
|
|
version = "2.1.10";
|
2017-07-03 19:12:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:51 +00:00
|
|
|
sha256 = "d30ad6084501224b1ba699cbf018a340bb9553eb2701301c14133995fdd84f33";
|
2017-07-03 19:12:46 +01:00
|
|
|
};
|
|
|
|
|
2018-02-26 18:25:27 +00:00
|
|
|
checkInputs = [ unittest2 ]; # Tests only
|
2017-07-03 19:12:46 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests coverage ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/, "argparse"//' setup.py
|
|
|
|
'';
|
|
|
|
|
2018-02-26 18:25:27 +00:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-07-03 19:12:46 +01:00
|
|
|
meta = {
|
|
|
|
description = "Python report uploader for Codecov";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://codecov.io/";
|
2017-07-03 19:12:46 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|