2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, docutils
|
|
|
|
, nose
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restructuredtext_lint";
|
2020-11-29 14:04:41 +00:00
|
|
|
version = "1.3.2";
|
2019-03-15 16:08:45 +00:00
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:41 +00:00
|
|
|
sha256 = "d3b10a1fe2ecac537e51ae6d151b223b78de9fafdd50e5eb6b08c243df173c80";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/twolfson/restructuredtext-lint";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
};
|
2019-03-15 16:08:45 +00:00
|
|
|
}
|