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