nixpkgs/pkgs/development/python-modules/restview/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

51 lines
980 B
Nix

{
lib,
buildPythonPackage,
docutils,
fetchPypi,
packaging,
pygments,
pytestCheckHook,
readme-renderer,
setuptools,
}:
buildPythonPackage rec {
pname = "restview";
version = "3.0.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-i011oL7Xa2e0Vu9wEfTrbJilVsn4N2Qt8iAscxL8zBo=";
};
pythonRelaxDeps = [ "readme_renderer" ];
build-system = [ setuptools ];
dependencies = [
docutils
readme-renderer
packaging
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "restview" ];
disabledTests = [
# Tests are comparing output
"rest_to_html"
];
meta = {
description = "ReStructuredText viewer";
homepage = "https://mg.pov.lt/restview/";
changelog = "https://github.com/mgedmin/restview/blob/${version}/CHANGES.rst";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ koral ];
mainProgram = "restview";
};
}