2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "codecov";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.1.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "355fc7e0c0b8a133045f0d6089bde351c845e7b52b99fec5903b4ea3ab5f6aab";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ unittest2 ]; # Tests only
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests coverage ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/, "argparse"//' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python report uploader for Codecov";
|
|
|
|
homepage = "https://codecov.io/";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|