2017-04-26 17:35:22 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
2017-04-27 07:01:58 +00:00
|
|
|
, fetchPypi
|
|
|
|
, mock
|
2017-09-05 09:06:19 +00:00
|
|
|
, pytest
|
|
|
|
, pytestrunner
|
2017-04-27 07:01:58 +00:00
|
|
|
, sh
|
|
|
|
, coverage
|
|
|
|
, docopt
|
2017-05-07 10:55:45 +00:00
|
|
|
, requests
|
2017-09-05 09:06:19 +00:00
|
|
|
, urllib3
|
2017-04-27 07:01:58 +00:00
|
|
|
, git
|
2017-09-05 09:06:19 +00:00
|
|
|
, isPy3k
|
2017-04-26 17:35:22 +00:00
|
|
|
}:
|
|
|
|
|
2017-04-27 07:01:58 +00:00
|
|
|
buildPythonPackage rec {
|
2017-04-26 17:35:22 +00:00
|
|
|
pname = "coveralls";
|
2017-04-27 07:01:58 +00:00
|
|
|
name = "${pname}-python-${version}";
|
2018-08-25 05:44:20 +00:00
|
|
|
version = "1.4.0";
|
2017-04-26 17:35:22 +00:00
|
|
|
|
2017-04-27 07:01:58 +00:00
|
|
|
# wanted by tests
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 05:44:20 +00:00
|
|
|
sha256 = "7ddb2e3114db9604a7cb1fcc68a7dcca32dce346f5ba568c99979b38e166f5a6";
|
2017-04-26 17:35:22 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 09:06:19 +00:00
|
|
|
checkInputs = [
|
2017-04-27 07:01:58 +00:00
|
|
|
mock
|
|
|
|
sh
|
2017-09-05 09:06:19 +00:00
|
|
|
pytest
|
2017-04-27 07:01:58 +00:00
|
|
|
git
|
2017-04-26 17:35:22 +00:00
|
|
|
];
|
|
|
|
|
2017-09-05 09:06:19 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
];
|
|
|
|
|
2017-04-27 07:01:58 +00:00
|
|
|
# FIXME: tests requires .git directory to be present
|
2017-04-26 17:35:22 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2017-04-27 07:01:58 +00:00
|
|
|
checkPhase = ''
|
|
|
|
python setup.py test
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
coverage
|
|
|
|
docopt
|
2017-05-07 10:55:45 +00:00
|
|
|
requests
|
2017-09-05 09:06:19 +00:00
|
|
|
] ++ lib.optional (!isPy3k) urllib3;
|
2017-04-27 07:01:58 +00:00
|
|
|
|
2017-04-26 17:35:22 +00:00
|
|
|
meta = {
|
2017-04-27 07:01:58 +00:00
|
|
|
description = "Show coverage stats online via coveralls.io";
|
|
|
|
homepage = https://github.com/coveralls-clients/coveralls-python;
|
2017-04-26 17:35:22 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|