summary refs log tree commit diff
path: root/pkgs/development/python-modules/restructuredtext_lint/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/restructuredtext_lint/default.nix')
-rw-r--r--pkgs/development/python-modules/restructuredtext_lint/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/restructuredtext_lint/default.nix b/pkgs/development/python-modules/restructuredtext_lint/default.nix
new file mode 100644
index 000000000000..1a863c629738
--- /dev/null
+++ b/pkgs/development/python-modules/restructuredtext_lint/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, docutils
+, nose
+, stdenv
+, flake8
+, pyyaml
+, testtools
+}:
+
+buildPythonPackage rec {
+  pname = "restructuredtext_lint";
+  version = "1.1.1";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "167e8adaa5bdc30531ee91760d6c216b306a8a3372aad34b1f72d8adcc5e011e";
+  };
+
+  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;
+  };
+}
\ No newline at end of file