diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/restructuredtext_lint')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/restructuredtext_lint/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/restructuredtext_lint/default.nix b/nixpkgs/pkgs/development/python-modules/restructuredtext_lint/default.nix new file mode 100644 index 000000000000..4522c7623283 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/restructuredtext_lint/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchPypi +, isPy37 +, docutils +, nose +, testtools +}: + +buildPythonPackage rec { + pname = "restructuredtext_lint"; + version = "1.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "97b3da356d5b3a8514d8f1f9098febd8b41463bed6a1d9f126cf0a048b6fd908"; + }; + + checkInputs = [ nose testtools ]; + propagatedBuildInputs = [ docutils ]; + + checkPhase = '' + nosetests --nocapture + ''; + + meta = { + description = "reStructuredText linter"; + homepage = https://github.com/twolfson/restructuredtext-lint; + license = lib.licenses.unlicense; + }; +} |