2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, docutils
|
|
|
|
, nose
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restructuredtext_lint";
|
2020-06-05 18:44:37 +01:00
|
|
|
version = "1.3.1";
|
2019-03-15 16:08:45 +00:00
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:37 +01:00
|
|
|
sha256 = "470e53b64817211a42805c3a104d2216f6f5834b22fe7adb637d1de4d6501fb8";
|
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
|
|
|
}
|