about summary refs log tree commit diff
path: root/pkgs/development/python-modules/coveralls
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-04-27 09:01:58 +0200
committerJörg Thalheim <joerg@thalheim.io>2017-04-27 09:03:06 +0200
commit3d10db7bc80e2ebd985b0bc0046dd264a42c45b5 (patch)
treed0806fdbdb473c7f053f9f9c87cd421ae413b6c8 /pkgs/development/python-modules/coveralls
parent237d61939de60d114356d3fa7fc61019dc0ce1a5 (diff)
downloadnixlib-3d10db7bc80e2ebd985b0bc0046dd264a42c45b5.tar
nixlib-3d10db7bc80e2ebd985b0bc0046dd264a42c45b5.tar.gz
nixlib-3d10db7bc80e2ebd985b0bc0046dd264a42c45b5.tar.bz2
nixlib-3d10db7bc80e2ebd985b0bc0046dd264a42c45b5.tar.lz
nixlib-3d10db7bc80e2ebd985b0bc0046dd264a42c45b5.tar.xz
nixlib-3d10db7bc80e2ebd985b0bc0046dd264a42c45b5.tar.zst
nixlib-3d10db7bc80e2ebd985b0bc0046dd264a42c45b5.zip
pythonPackages.coveralls: correct description
Diffstat (limited to 'pkgs/development/python-modules/coveralls')
-rw-r--r--pkgs/development/python-modules/coveralls/default.nix46
1 files changed, 31 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/coveralls/default.nix b/pkgs/development/python-modules/coveralls/default.nix
index d2c621de43cf..59f66f36d876 100644
--- a/pkgs/development/python-modules/coveralls/default.nix
+++ b/pkgs/development/python-modules/coveralls/default.nix
@@ -1,33 +1,49 @@
 { buildPythonPackage
 , lib
-, fetchurl
-, pythonPackages
+, fetchPypi
+, mock
+, pytest_27
+, sh
+, coverage
+, docopt
+, requests2
+, git
 }:
 
-let
+buildPythonPackage rec {
   pname = "coveralls";
+  name = "${pname}-python-${version}";
   version = "1.1";
-in buildPythonPackage rec {
-  name = "${pname}-${version}";
 
-  src = fetchurl {
-    url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
+  # wanted by tests
+  src = fetchPypi {
+    inherit pname version;
     sha256 = "0238hgdwbvriqxrj22zwh0rbxnhh9c6hh75i39ll631vq62h65il";
   };
 
-  buildInputs = with pythonPackages; [
-    coverage
-    docopt
-    requests
+  buildInputs = [
+    mock
+    sh
+    pytest_27
+    git
   ];
-  propagatedBuildInputs = [];
 
-  # Tests in neither the archive nor the repo
+  # FIXME: tests requires .git directory to be present
   doCheck = false;
 
+  checkPhase = ''
+    python setup.py test
+  '';
+
+  propagatedBuildInputs = [
+    coverage
+    docopt
+    requests2
+  ];
+
   meta = {
-    description = "py.test plugin to store test expectations and mark tests based on them";
-    homepage = https://github.com/gsnedders/pytest-expect;
+    description = "Show coverage stats online via coveralls.io";
+    homepage = https://github.com/coveralls-clients/coveralls-python;
     license = lib.licenses.mit;
   };
 }