1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-19 17:39:34 +00:00

Merge pull request #135640 from fabaff/bump-codecov

This commit is contained in:
Sandro 2021-08-25 12:55:50 +02:00 committed by GitHub
commit 9f641bd256
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,28 +1,50 @@
{ lib, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }: { lib
, buildPythonPackage
, coverage
, ddt
, fetchFromGitHub
, mock
, pytestCheckHook
, requests
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "codecov"; pname = "codecov";
version = "2.1.11"; version = "2.1.12";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "codecov";
sha256 = "6cde272454009d27355f9434f4e49f238c0273b216beda8472a65dc4957f473b"; repo = "codecov-python";
rev = "v${version}";
sha256 = "0bdk1cp3hxydpx9knqfv88ywwzw7yqhywi0inxjd6x53qh75prqy";
}; };
checkInputs = [ unittest2 ]; # Tests only propagatedBuildInputs = [
requests
coverage
];
propagatedBuildInputs = [ requests coverage ]; checkInputs = [
ddt
mock
pytestCheckHook
];
postPatch = '' pytestFlagsArray = [ "tests/test.py" ];
sed -i 's/, "argparse"//' setup.py
'';
# No tests in archive disabledTests = [
doCheck = false; # No git repo available and network
"test_bowerrc_none"
"test_prefix"
"test_send"
];
pythonImportsCheck = [ "codecov" ];
meta = with lib; { meta = with lib; {
description = "Python report uploader for Codecov"; description = "Python report uploader for Codecov";
homepage = "https://codecov.io/"; homepage = "https://codecov.io/";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ];
}; };
} }