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.2";
15 name = "${pname}-${version}";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "9201d354e22c27be61cf6d8212da6e10c875eec7ec8d1bdb1067b2a5ba931637";
20 };
21
22 checkInputs = [ nose flake8 pyyaml testtools ];
23 propagatedBuildInputs = [ docutils ];
24
25 checkPhase = ''
26 ${stdenv.shell} test.sh
27 '';
28
29 meta = {
30 description = "reStructuredText linter";
31 homepage = https://github.com/twolfson/restructuredtext-lint;
32 license = lib.licenses.unlicense;
33 };
34}