2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, docutils
|
|
|
|
, nose
|
|
|
|
, stdenv
|
|
|
|
, flake8
|
|
|
|
, pyyaml
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restructuredtext_lint";
|
2019-02-14 07:37:29 +00:00
|
|
|
version = "1.2.2";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:29 +00:00
|
|
|
sha256 = "82880a8de8a41bfc84f533744091b1ead8e2ab9ad6c0a3f60f4750ef6c802350";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose flake8 pyyaml testtools ];
|
|
|
|
propagatedBuildInputs = [ docutils ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${stdenv.shell} test.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "reStructuredText linter";
|
|
|
|
homepage = https://github.com/twolfson/restructuredtext-lint;
|
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
};
|
|
|
|
}
|