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";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2.1.13";
|
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";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|