2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-15 16:08:45 +00:00
|
|
|
, isPy37
|
2017-09-05 10:16:41 +01:00
|
|
|
, docutils
|
|
|
|
, nose
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restructuredtext_lint";
|
2019-03-24 08:09:48 +00:00
|
|
|
version = "1.3.0";
|
2019-03-15 16:08:45 +00:00
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-03-24 08:09:48 +00:00
|
|
|
sha256 = "97b3da356d5b3a8514d8f1f9098febd8b41463bed6a1d9f126cf0a048b6fd908";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2019-03-15 16:08:45 +00:00
|
|
|
checkInputs = [ nose testtools ];
|
2017-09-05 10:16:41 +01:00
|
|
|
propagatedBuildInputs = [ docutils ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-03-15 16:08:45 +00:00
|
|
|
nosetests --nocapture
|
2017-09-05 10:16:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "reStructuredText linter";
|
|
|
|
homepage = https://github.com/twolfson/restructuredtext-lint;
|
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
};
|
2019-03-15 16:08:45 +00:00
|
|
|
}
|