Commit 34629fce authored by Dmitry Bogatov's avatar Dmitry Bogatov Committed by Yt
Browse files

python3.pkgs.deprecated: build offline documentation

parent ad28c1eb
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
{ lib
, fetchPypi
, fetchFromGitHub
, buildPythonPackage
, wrapt
, pytestCheckHook
, sphinxHook
}:

buildPythonPackage rec {
  pname = "deprecated";
  version = "1.2.13";
  outputs = [ "out" "doc" ];

  src = fetchPypi {
    pname = "Deprecated";
    inherit version;
    hash = "sha256-Q6xTNdqQwxwkugKK9TapHUHVP55pAd2wIbzFcs5E440=";
  src = fetchFromGitHub {
    owner = "tantale";
    repo = "deprecated";
    rev = "v${version}";
    hash = "sha256-rCDUY/TVmJqhrxDah62lEhqpr05JNZSyiFNTlHvSnmw=";
  };

  nativeBuildInputs = [
    sphinxHook
  ];

  propagatedBuildInputs = [
    wrapt
  ];