1{ lib 2, buildPythonPackage 3, fetchPypi 4, docutils 5, nose 6, testtools 7}: 8 9buildPythonPackage rec { 10 pname = "restructuredtext_lint"; 11 version = "1.4.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "sha256-GyNcDJIjQatsUwOQiS656S+QubdQRgY+BHys+w8FDEU="; 16 }; 17 18 checkInputs = [ nose testtools ]; 19 propagatedBuildInputs = [ docutils ]; 20 21 checkPhase = '' 22 nosetests --nocapture 23 ''; 24 25 meta = { 26 description = "reStructuredText linter"; 27 homepage = "https://github.com/twolfson/restructuredtext-lint"; 28 license = lib.licenses.unlicense; 29 }; 30}