about summary refs log tree commit diff
path: root/pkgs/development/python-modules/restructuredtext_lint/default.nix
blob: 1a863c62973847af27283475e0a7d53ec20df403 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
  };
}