python3.pkgs.deprecated: build offline documentation

This commit is contained in:
Dmitry Bogatov 2023-01-03 20:17:28 -05:00 committed by Yt
parent ad28c1ebcb
commit 34629fce5f

View File

@ -1,20 +1,27 @@
{ 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
];