2019-07-15 16:16:42 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-20 23:09:14 +01:00
|
|
|
, isPy27
|
2019-07-15 16:16:42 +01:00
|
|
|
, six
|
|
|
|
, pytest
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-doctestplus";
|
2020-08-16 18:31:12 +01:00
|
|
|
version = "0.8.0";
|
2020-06-20 23:09:14 +01:00
|
|
|
disabled = isPy27; # abandoned upstream
|
2019-07-15 16:16:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:12 +01:00
|
|
|
sha256 = "fb083925a17ce636f33997c275f61123e63372c1db11fefac1e991ed25a4ca37";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|