1{ buildPythonPackage
2, lib
3, fetchPypi
4, mock
5, pytest_27
6, sh
7, coverage
8, docopt
9, requests
10, git
11}:
12
13buildPythonPackage rec {
14 pname = "coveralls";
15 name = "${pname}-python-${version}";
16 version = "1.2.0";
17
18 # wanted by tests
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "510682001517bcca1def9f6252df6ce730fcb9831c62d9fff7c7d55b6fdabdf3";
22 };
23
24 buildInputs = [
25 mock
26 sh
27 pytest_27
28 git
29 ];
30
31 # FIXME: tests requires .git directory to be present
32 doCheck = false;
33
34 checkPhase = ''
35 python setup.py test
36 '';
37
38 propagatedBuildInputs = [
39 coverage
40 docopt
41 requests
42 ];
43
44 meta = {
45 description = "Show coverage stats online via coveralls.io";
46 homepage = https://github.com/coveralls-clients/coveralls-python;
47 license = lib.licenses.mit;
48 };
49}
50
51