Merge pull request #233447 from SuperSandro2000/hypothesis-doc-pasthru

python310Packages.hypothesis: move documentation to passthru to reduce dependencies

authored by

Sandro and committed by
GitHub
1f49db77 8d494834

+34 -26
-3
pkgs/applications/misc/privacyidea/default.nix
··· 141 sphinxHook = null; 142 sphinx-better-theme = null; 143 }).overridePythonAttrs dropDocOutput; 144 - hypothesis = super.hypothesis.override { 145 - enableDocumentation = false; 146 - }; 147 pyjwt = (super.pyjwt.override { 148 sphinxHook = null; 149 sphinx-rtd-theme = null;
··· 141 sphinxHook = null; 142 sphinx-better-theme = null; 143 }).overridePythonAttrs dropDocOutput; 144 pyjwt = (super.pyjwt.override { 145 sphinxHook = null; 146 sphinx-rtd-theme = null;
+1 -2
pkgs/development/python-modules/chardet/default.nix
··· 23 ]; 24 25 nativeCheckInputs = [ 26 - # "hypothesis" indirectly depends on chardet to build its documentation. 27 - (hypothesis.override { enableDocumentation = false; }) 28 pytestCheckHook 29 ]; 30
··· 23 ]; 24 25 nativeCheckInputs = [ 26 + hypothesis 27 pytestCheckHook 28 ]; 29
+1 -2
pkgs/development/python-modules/cryptography/default.nix
··· 72 73 nativeCheckInputs = [ 74 cryptography-vectors 75 - # "hypothesis" indirectly depends on cryptography to build its documentation 76 - (hypothesis.override { enableDocumentation = false; }) 77 iso8601 78 pretend 79 py
··· 72 73 nativeCheckInputs = [ 74 cryptography-vectors 75 + hypothesis 76 iso8601 77 pretend 78 py
+28 -11
pkgs/development/python-modules/hypothesis/default.nix
··· 8 , doCheck ? true 9 , pytestCheckHook 10 , pytest-xdist 11 , sortedcontainers 12 , pythonOlder 13 , sphinxHook 14 , sphinx-rtd-theme 15 , sphinx-hoverxref 16 , sphinx-codeautolink 17 , tzdata 18 - # Used to break internal dependency loop. 19 - , enableDocumentation ? true 20 }: 21 22 buildPythonPackage rec { 23 pname = "hypothesis"; 24 version = "6.68.2"; 25 - outputs = [ "out" ] ++ lib.optional enableDocumentation "doc"; 26 format = "setuptools"; 27 28 disabled = pythonOlder "3.7"; ··· 49 50 postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; 51 52 - nativeBuildInputs = lib.optionals enableDocumentation [ 53 - sphinxHook 54 - sphinx-rtd-theme 55 - sphinx-hoverxref 56 - sphinx-codeautolink 57 - ]; 58 - 59 propagatedBuildInputs = [ 60 attrs 61 sortedcontainers ··· 67 pexpect 68 pytest-xdist 69 pytestCheckHook 70 - ] ++ lib.optionals (isPyPy) [ 71 tzdata 72 ]; 73 ··· 85 pythonImportsCheck = [ 86 "hypothesis" 87 ]; 88 89 meta = with lib; { 90 description = "Library for property based testing";
··· 8 , doCheck ? true 9 , pytestCheckHook 10 , pytest-xdist 11 + , python 12 , sortedcontainers 13 + , stdenv 14 , pythonOlder 15 , sphinxHook 16 , sphinx-rtd-theme 17 , sphinx-hoverxref 18 , sphinx-codeautolink 19 , tzdata 20 }: 21 22 buildPythonPackage rec { 23 pname = "hypothesis"; 24 version = "6.68.2"; 25 + outputs = [ "out" ]; 26 format = "setuptools"; 27 28 disabled = pythonOlder "3.7"; ··· 49 50 postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; 51 52 propagatedBuildInputs = [ 53 attrs 54 sortedcontainers ··· 60 pexpect 61 pytest-xdist 62 pytestCheckHook 63 + ] ++ lib.optionals isPyPy [ 64 tzdata 65 ]; 66 ··· 78 pythonImportsCheck = [ 79 "hypothesis" 80 ]; 81 + 82 + passthru = { 83 + doc = stdenv.mkDerivation { 84 + # Forge look and feel of multi-output derivation as best as we can. 85 + # 86 + # Using 'outputs = [ "doc" ];' breaks a lot of assumptions. 87 + name = "${pname}-${version}-doc"; 88 + inherit src pname version; 89 + 90 + postInstallSphinx = '' 91 + mv $out/share/doc/* $out/share/doc/python$pythonVersion-$pname-$version 92 + ''; 93 + 94 + nativeBuildInputs = [ 95 + sphinxHook 96 + sphinx-rtd-theme 97 + sphinx-hoverxref 98 + sphinx-codeautolink 99 + ]; 100 + 101 + inherit (python) pythonVersion; 102 + inherit meta; 103 + }; 104 + }; 105 106 meta = with lib; { 107 description = "Library for property based testing";
+1 -2
pkgs/development/python-modules/iso8601/default.nix
··· 25 ]; 26 27 nativeCheckInputs = [ 28 - # "hypothesis" indirectly depends on iso8601 to build its documentation 29 - (hypothesis.override { enableDocumentation = false; }) 30 pytestCheckHook 31 pytz 32 ];
··· 25 ]; 26 27 nativeCheckInputs = [ 28 + hypothesis 29 pytestCheckHook 30 pytz 31 ];
+1 -2
pkgs/development/python-modules/numpy/default.nix
··· 76 77 nativeCheckInputs = [ 78 pytest 79 - # "hypothesis" indirectly depends on numpy to build its documentation. 80 - (hypothesis.override { enableDocumentation = false; }) 81 typing-extensions 82 ]; 83
··· 76 77 nativeCheckInputs = [ 78 pytest 79 + hypothesis 80 typing-extensions 81 ]; 82
+1 -2
pkgs/development/python-modules/pandas/default.nix
··· 44 45 nativeCheckInputs = [ 46 glibcLocales 47 - # hypothesis indirectly depends on pandas to build its documentation 48 - (hypothesis.override { enableDocumentation = false; }) 49 jinja2 50 pytest-asyncio 51 pytest-xdist
··· 44 45 nativeCheckInputs = [ 46 glibcLocales 47 + hypothesis 48 jinja2 49 pytest-asyncio 50 pytest-xdist
+1 -2
pkgs/development/python-modules/twisted/default.nix
··· 159 nativeCheckInputs = [ 160 git 161 glibcLocales 162 - # "hypothesis" indirectly depends on twisted to build its documentation. 163 - (hypothesis.override { enableDocumentation = false; }) 164 pyhamcrest 165 ] 166 ++ passthru.optional-dependencies.conch
··· 159 nativeCheckInputs = [ 160 git 161 glibcLocales 162 + hypothesis 163 pyhamcrest 164 ] 165 ++ passthru.optional-dependencies.conch