pythonPackages.coveralls: correct description
This commit is contained in:
parent
237d61939d
commit
3d10db7bc8
@ -1,33 +1,49 @@
|
|||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchPypi
|
||||||
, pythonPackages
|
, mock
|
||||||
|
, pytest_27
|
||||||
|
, sh
|
||||||
|
, coverage
|
||||||
|
, docopt
|
||||||
|
, requests2
|
||||||
|
, git
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
pname = "coveralls";
|
pname = "coveralls";
|
||||||
|
name = "${pname}-python-${version}";
|
||||||
version = "1.1";
|
version = "1.1";
|
||||||
in buildPythonPackage rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
# wanted by tests
|
||||||
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
sha256 = "0238hgdwbvriqxrj22zwh0rbxnhh9c6hh75i39ll631vq62h65il";
|
sha256 = "0238hgdwbvriqxrj22zwh0rbxnhh9c6hh75i39ll631vq62h65il";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pythonPackages; [
|
buildInputs = [
|
||||||
coverage
|
mock
|
||||||
docopt
|
sh
|
||||||
requests
|
pytest_27
|
||||||
|
git
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [];
|
|
||||||
|
|
||||||
# Tests in neither the archive nor the repo
|
# FIXME: tests requires .git directory to be present
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
python setup.py test
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
coverage
|
||||||
|
docopt
|
||||||
|
requests2
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "py.test plugin to store test expectations and mark tests based on them";
|
description = "Show coverage stats online via coveralls.io";
|
||||||
homepage = https://github.com/gsnedders/pytest-expect;
|
homepage = https://github.com/coveralls-clients/coveralls-python;
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user