2017-09-05 11:16:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-15 17:08:45 +01:00
|
|
|
, isPy37
|
2017-09-05 11:16:41 +02:00
|
|
|
, docutils
|
|
|
|
, nose
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restructuredtext_lint";
|
2019-02-14 08:37:29 +01:00
|
|
|
version = "1.2.2";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2019-03-15 17:08:45 +01:00
|
|
|
# https://github.com/twolfson/restructuredtext-lint/pull/47
|
|
|
|
disabled = isPy37;
|
|
|
|
|
2017-09-05 11:16:41 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:29 +01:00
|
|
|
sha256 = "82880a8de8a41bfc84f533744091b1ead8e2ab9ad6c0a3f60f4750ef6c802350";
|
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
|
|
|
}
|