18 buildPythonPackage rec {
19 pname = "rstcheck-core";
23 disabled = pythonOlder "3.8";
25 src = fetchFromGitHub {
27 repo = "rstcheck-core";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-PiQMk0lIv24S6qXMYIQR+SkSji+WA30ivWs2uPQwf2A=";
38 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-strict-prototypes";
46 ++ lib.optionals (pythonOlder "3.9") [
58 # https://github.com/rstcheck/rstcheck-core/issues/84
59 "test_check_yaml_returns_error_on_bad_code_block"
62 pythonImportsCheck = [ "rstcheck_core" ];
65 description = "Library for checking syntax of reStructuredText";
66 homepage = "https://github.com/rstcheck/rstcheck-core";
67 changelog = "https://github.com/rstcheck/rstcheck-core/blob/v${version}/CHANGELOG.md";
68 license = licenses.mit;
69 maintainers = with maintainers; [ fab ];