2017-07-03 19:12:46 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "codecov";
|
2020-06-06 07:47:01 +01:00
|
|
|
version = "2.1.4";
|
2017-07-03 19:12:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:01 +01:00
|
|
|
sha256 = "bf30a41f65e747b159e2a749d1f9c92042d358bba0905fd94d3def3a368e592c";
|
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;
|
|
|
|
};
|
|
|
|
}
|