python312Packages.mdformat: refactor (#372674)

authored by Fabian Affolter and committed by GitHub 12e92290 690b2d31

+23 -9
+21 -2
pkgs/development/python-modules/mdformat-mkdocs/default.nix
··· 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 5 flit-core, 6 + mdformat-beautysh, 7 + mdformat-footnote, 8 + mdformat-frontmatter, 9 + mdformat-gfm, 10 + mdformat-simple-breaks, 11 + mdformat-tables, 6 12 mdformat, 7 - mdformat-gfm, 8 13 mdit-py-plugins, 9 14 more-itertools, 10 - pythonOlder, 11 15 pytest-snapshot, 12 16 pytestCheckHook, 17 + pythonOlder, 13 18 }: 14 19 15 20 buildPythonPackage rec { ··· 34 39 mdit-py-plugins 35 40 more-itertools 36 41 ]; 42 + 43 + optional-dependencies = { 44 + recommended = [ 45 + mdformat-beautysh 46 + # mdformat-config 47 + mdformat-footnote 48 + mdformat-frontmatter 49 + # mdformat-ruff 50 + mdformat-simple-breaks 51 + mdformat-tables 52 + # mdformat-web 53 + # mdformat-wikilink 54 + ]; 55 + }; 37 56 38 57 nativeCheckInputs = [ 39 58 pytest-snapshot
+2 -7
pkgs/development/python-modules/mdformat/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - importlib-metadata, 6 5 markdown-it-py, 7 6 pytestCheckHook, 8 7 pythonOlder, 9 8 setuptools, 10 - tomli, 11 9 }: 12 10 13 11 buildPythonPackage rec { ··· 15 13 version = "0.7.22"; 16 14 pyproject = true; 17 15 18 - disabled = pythonOlder "3.8"; 16 + disabled = pythonOlder "3.12"; 19 17 20 18 src = fetchFromGitHub { 21 19 owner = "executablebooks"; ··· 26 24 27 25 build-system = [ setuptools ]; 28 26 29 - dependencies = 30 - [ markdown-it-py ] 31 - ++ lib.optionals (pythonOlder "3.11") [ tomli ] 32 - ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; 27 + dependencies = [ markdown-it-py ]; 33 28 34 29 nativeCheckInputs = [ pytestCheckHook ]; 35 30