2021-08-27 14:25:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, coverage
|
|
|
|
, ddt
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "codecov";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "2.1.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "codecov";
|
|
|
|
repo = "codecov-python";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bdk1cp3hxydpx9knqfv88ywwzw7yqhywi0inxjd6x53qh75prqy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
coverage
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
checkInputs = [
|
|
|
|
ddt
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
pytestFlagsArray = [ "tests/test.py" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# No git repo available and network
|
|
|
|
"test_bowerrc_none"
|
|
|
|
"test_prefix"
|
|
|
|
"test_send"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "codecov" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python report uploader for Codecov";
|
|
|
|
homepage = "https://codecov.io/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.asl20;
|
2021-08-27 14:25:00 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|