2017-04-26 17:35:22 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
lib,
|
2024-06-19 03:05:10 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
poetry-core,
|
|
|
|
|
|
|
|
# checks
|
2017-04-27 07:01:58 +00:00
|
|
|
mock,
|
2024-06-19 03:05:10 +00:00
|
|
|
pytestCheckHook,
|
2017-04-27 07:01:58 +00:00
|
|
|
sh,
|
|
|
|
coverage,
|
|
|
|
docopt,
|
2017-05-07 10:55:45 +00:00
|
|
|
requests,
|
2017-04-27 07:01:58 +00:00
|
|
|
git,
|
2024-06-19 03:05:10 +00:00
|
|
|
responses,
|
2017-04-26 17:35:22 +00:00
|
|
|
}:
|
|
|
|
|
2017-04-27 07:01:58 +00:00
|
|
|
buildPythonPackage rec {
|
2017-04-26 17:35:22 +00:00
|
|
|
pname = "coveralls";
|
2024-06-19 03:05:10 +00:00
|
|
|
version = "4.0.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheKevJames";
|
|
|
|
repo = "coveralls-python";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-1MjP99NykWNDyzWwZopLAzZ93vGX1mXEU+m+zvOBIZA=";
|
2017-04-26 17:35:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-19 03:05:10 +00:00
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
coverage
|
|
|
|
docopt
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2017-04-27 07:01:58 +00:00
|
|
|
mock
|
|
|
|
sh
|
2024-06-19 03:05:10 +00:00
|
|
|
pytestCheckHook
|
|
|
|
responses
|
2017-04-27 07:01:58 +00:00
|
|
|
git
|
2017-04-26 17:35:22 +00:00
|
|
|
];
|
|
|
|
|
2024-06-19 03:05:10 +00:00
|
|
|
preCheck = ''
|
|
|
|
export PATH=${coverage}/bin:$PATH
|
2017-04-27 07:01:58 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-19 03:05:10 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires .git in checkout
|
|
|
|
"test_git"
|
|
|
|
# try to run unwrapped python
|
|
|
|
"test_5"
|
|
|
|
"test_7"
|
|
|
|
"test_11"
|
|
|
|
];
|
2017-04-27 07:01:58 +00:00
|
|
|
|
2017-04-26 17:35:22 +00:00
|
|
|
meta = {
|
2017-04-27 07:01:58 +00:00
|
|
|
description = "Show coverage stats online via coveralls.io";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "coveralls";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/coveralls-clients/coveralls-python";
|
2017-04-26 17:35:22 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|