nixpkgs/pkgs/development/python-modules/codecov/default.nix

51 lines
873 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, coverage
2021-08-25 08:24:59 +01:00
, ddt
, fetchFromGitHub
, mock
, pytestCheckHook
, requests
}:
buildPythonPackage rec {
pname = "codecov";
version = "2.1.12";
2021-08-25 08:24:59 +01:00
src = fetchFromGitHub {
owner = "codecov";
repo = "codecov-python";
rev = "v${version}";
sha256 = "0bdk1cp3hxydpx9knqfv88ywwzw7yqhywi0inxjd6x53qh75prqy";
};
propagatedBuildInputs = [
requests
coverage
];
2021-08-25 08:24:59 +01:00
checkInputs = [
ddt
mock
pytestCheckHook
];
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"
];
2021-08-25 08:24:59 +01:00
pythonImportsCheck = [ "codecov" ];
2018-02-26 18:25:27 +00:00
meta = with lib; {
description = "Python report uploader for Codecov";
homepage = "https://codecov.io/";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}