1{ stdenv, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }: 2 3buildPythonPackage rec { 4 pname = "codecov"; 5 version = "2.0.9"; 6 name = "${pname}-${version}"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "037h4dcl8xshlq3rj8409p11rpgnyqrhlhfq8j34s94nm0n1h76v"; 11 }; 12 13 buildInputs = [ unittest2 ]; # Tests only 14 15 propagatedBuildInputs = [ requests coverage ]; 16 17 postPatch = '' 18 sed -i 's/, "argparse"//' setup.py 19 ''; 20 21 meta = { 22 description = "Python report uploader for Codecov"; 23 homepage = https://codecov.io/; 24 license = stdenv.lib.licenses.asl20; 25 }; 26}