about summary refs log tree commit diff
path: root/pkgs/development/python-modules/codecov
diff options
context:
space:
mode:
authorThéo Zimmermann <theo.zimmermann@univ-paris-diderot.fr>2017-07-03 20:12:46 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2017-07-03 20:12:46 +0200
commit753aab14947c987fc8be1538d828e74a4665bdd2 (patch)
tree268e1ad42ad9086f54c777a18538fda27a864d79 /pkgs/development/python-modules/codecov
parent1336fde8cef288d11ed2a9d1d85900911d87f2df (diff)
downloadnixlib-753aab14947c987fc8be1538d828e74a4665bdd2.tar
nixlib-753aab14947c987fc8be1538d828e74a4665bdd2.tar.gz
nixlib-753aab14947c987fc8be1538d828e74a4665bdd2.tar.bz2
nixlib-753aab14947c987fc8be1538d828e74a4665bdd2.tar.lz
nixlib-753aab14947c987fc8be1538d828e74a4665bdd2.tar.xz
nixlib-753aab14947c987fc8be1538d828e74a4665bdd2.tar.zst
nixlib-753aab14947c987fc8be1538d828e74a4665bdd2.zip
pythonPackages.codecov: init at 2.0.9 (#27018)
* pythonPackages.codecov: init at 2.0.9

* Update default.nix
Diffstat (limited to 'pkgs/development/python-modules/codecov')
-rw-r--r--pkgs/development/python-modules/codecov/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/codecov/default.nix b/pkgs/development/python-modules/codecov/default.nix
new file mode 100644
index 000000000000..93620098446a
--- /dev/null
+++ b/pkgs/development/python-modules/codecov/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }:
+
+buildPythonPackage rec {
+  pname = "codecov";
+  version = "2.0.9";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "037h4dcl8xshlq3rj8409p11rpgnyqrhlhfq8j34s94nm0n1h76v";
+  };
+
+  buildInputs = [ unittest2 ]; # Tests only
+
+  propagatedBuildInputs = [ requests coverage ];
+
+  postPatch = ''
+    sed -i 's/, "argparse"//' setup.py
+  '';
+
+  meta = {
+    description = "Python report uploader for Codecov";
+    homepage = https://codecov.io/;
+    license = stdenv.lib.licenses.asl20;
+  };
+}