~kaction/config

15099e37a6bd5facf6637e299272dda905f99ded — Dmitry Bogatov a month ago b5b94a0
Add python-attrs into Documentation
M universe/Documentation/default.nix => universe/Documentation/default.nix +3 -0
@@ 5,6 5,7 @@ let
  doc-nixpkgs = callPackage ./doc-nixpkgs.nix { inherit nixpkgs; };
  doc-posix = callPackage ./doc-posix.nix { };
  doc-py-dropbox = callPackage ./doc-dropbox.nix { };
  doc-py-attr = callPackage ./doc-py-attrs.nix { };
  doc-py-click = callPackage ./doc-py-click.nix { };
  doc-python = callPackage ./doc-python.nix { };
  doc-uwsgi = callPackage ./doc-uwsgi.nix { };


@@ 32,9 33,11 @@ in runCommand "Documentation" { } ''
  ln -sf ${postgresql_10.doc}/share/doc/postgresql/html/bookindex.html postgresql-10.html
  ln -sf ${doc-nixpkgs}/share/doc/nixpkgs/manual.html NixPkgs.html
  ln -sf ${doc-py-dropbox}/html/index.html python/dropbox.html
  ln -sf ${doc-py-attr}/html/index.html python/attr.html
  ln -sf ${doc-py-click}/html/index.html python/click.html
  ln -sf ${doc-uwsgi}/html/index.html python/uwsgi.html
  ln -sf ${doc-py-dropbox}/singlehtml/index.html python/_singlepage-dropbox.html
  ln -sf ${doc-py-attr}/singlehtml/index.html python/_signlepage-attr.html
  ln -sf ${doc-py-click}/singlehtml/index.html python/_singlepage-click.html
  ln -sf ${haskellPackages.dhall.doc}/share/doc/*/html/index.html haskell/dhall.html
  ln -sf ${haskellPackages.megaparsec.doc}/share/doc/*/html/index.html haskell/megaparsec.html

A universe/Documentation/doc-py-attrs.nix => universe/Documentation/doc-py-attrs.nix +17 -0
@@ 0,0 1,17 @@
{ stdenv, python3 }:
stdenv.mkDerivation {
  name = "Documentation-attrs.py";
  inherit (python3.pkgs.attrs) src;
  nativeBuildInputs = [
    python3.pkgs.attrs
    python3.pkgs.sphinx
    python3.pkgs.sphinx-furo
  ];
  installPhase = ''
    cd docs
    sphinx-build -b singlehtml -d _build/doctrees . $out/singlehtml
    sphinx-build -b html -d _build/doctrees . $out/html
    cd ..
  '';
  phases = [ "unpackPhase" "installPhase" ];
}

M universe/python3/overrides.nix => universe/python3/overrides.nix +10 -0
@@ 105,6 105,16 @@ self: super: {
    };
  };

  sphinx-furo = super.buildPythonPackage rec {
    pname = "furo";
    version = "2021.4.11b34";
    propagatedBuildInputs = with self; [ beautifulsoup4 sphinx ];
    src = super.fetchPypi {
      inherit pname version;
      hash = "sha256-PYjihVlJzs9fVi6KKMqxptM1XYLzz1eW7d+ewjTpdRk";
    };
  };

  python-pure-cdb = super.buildPythonPackage {
    pname = "python-pure-cdb";
    version = "3.1.1";