2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
coverage,
|
|
|
|
ddt,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
2021-08-27 14:25:00 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "codecov";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2.1.13";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "codecov";
|
|
|
|
repo = "codecov-python";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-cZEpAw8uv/XGiGzdBZ9MnabNaTP0did2GT+BkKMJM/E=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-27 14:25:00 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "codecov";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|