2021-08-25 08:13:31 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, coverage
|
2021-08-25 08:24:59 +01:00
|
|
|
, ddt
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
2021-08-25 08:13:31 +01:00
|
|
|
}:
|
2017-07-03 19:12:46 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "codecov";
|
2021-08-25 08:13:31 +01:00
|
|
|
version = "2.1.12";
|
2017-07-03 19:12:46 +01:00
|
|
|
|
2021-08-25 08:24:59 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "codecov";
|
|
|
|
repo = "codecov-python";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bdk1cp3hxydpx9knqfv88ywwzw7yqhywi0inxjd6x53qh75prqy";
|
2017-07-03 19:12:46 +01:00
|
|
|
};
|
|
|
|
|
2021-08-25 08:13:31 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
coverage
|
|
|
|
];
|
2017-07-03 19:12:46 +01:00
|
|
|
|
2021-08-25 08:24:59 +01:00
|
|
|
checkInputs = [
|
|
|
|
ddt
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-07-03 19:12:46 +01:00
|
|
|
|
2021-08-25 08:24:59 +01:00
|
|
|
pytestFlagsArray = [ "tests/test.py" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# No git repo available and network
|
|
|
|
"test_bowerrc_none"
|
|
|
|
"test_prefix"
|
|
|
|
"test_send"
|
|
|
|
];
|
2017-07-03 19:12:46 +01:00
|
|
|
|
2021-08-25 08:24:59 +01:00
|
|
|
pythonImportsCheck = [ "codecov" ];
|
2018-02-26 18:25:27 +00:00
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2017-07-03 19:12:46 +01:00
|
|
|
description = "Python report uploader for Codecov";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://codecov.io/";
|
2021-01-24 00:29:22 +00:00
|
|
|
license = licenses.asl20;
|
2021-08-25 08:13:31 +01:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-07-03 19:12:46 +01:00
|
|
|
};
|
|
|
|
}
|