17 buildPythonPackage rec {
22 disabled = pythonOlder "3.8";
24 src = fetchFromGitHub {
27 rev = "refs/tags/v${version}";
28 hash = "sha256-CB8UtYAJpPrUOGgHOIp9Ts0GaID6GdtKHWD/ihxRoNg=";
44 nativeCheckInputs = [ pytestCheckHook ];
46 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
47 # Disabled until https://github.com/rstcheck/rstcheck-core/issues/19 is resolved.
48 "test_error_without_config_file_macos"
49 "test_file_1_is_bad_without_config_macos"
52 pythonImportsCheck = [ "rstcheck" ];
55 # The tests need to find and call the rstcheck executable
56 export PATH="$PATH:$out/bin";
60 description = "Checks syntax of reStructuredText and code blocks nested within it";
61 homepage = "https://github.com/myint/rstcheck";
62 changelog = "https://github.com/rstcheck/rstcheck/blob/v${version}/CHANGELOG.md";
63 license = licenses.mit;
64 maintainers = with maintainers; [ staccato ];
65 mainProgram = "rstcheck";