1{ lib
2, buildPythonPackage
3, fetchPypi
4, docutils
5, nose
6, stdenv
7, flake8
8, pyyaml
9, testtools
10}:
11
12buildPythonPackage rec {
13 pname = "restructuredtext_lint";
14 version = "1.1.3";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "c48ca9a84c312b262809f041fe47dcfaedc9ee4879b3e1f9532f745c182b4037";
19 };
20
21 checkInputs = [ nose flake8 pyyaml testtools ];
22 propagatedBuildInputs = [ docutils ];
23
24 checkPhase = ''
25 ${stdenv.shell} test.sh
26 '';
27
28 meta = {
29 description = "reStructuredText linter";
30 homepage = https://github.com/twolfson/restructuredtext-lint;
31 license = lib.licenses.unlicense;
32 };
33}