2019-07-15 16:16:42 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, pytest
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-doctestplus";
|
2020-06-06 07:47:27 +01:00
|
|
|
version = "0.7.0";
|
2019-07-15 16:16:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:27 +01:00
|
|
|
sha256 = "ed440f43e33191f09aed7bbc4f60db3dfb8f295ab33e04c59302af7eda9e29aa";
|
2019-07-15 16:16:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
numpy
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2020-06-12 18:40:43 +01:00
|
|
|
# check_distribution incorrectly pulls pytest version
|
2019-07-15 16:16:42 +01:00
|
|
|
checkPhase = ''
|
2020-06-12 18:40:43 +01:00
|
|
|
pytest -k 'not check_distribution'
|
2019-07-15 16:16:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin with advanced doctest features";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://astropy.org";
|
2019-07-15 16:16:42 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|