lol

Merge pull request #121648 from AluisioASG/aasg/jupytext-1.11.2

python3Packages.markdown-it-py: 0.6.2 -> 1.0.0; python3Packages.jupytext: 1.11.0 -> 1.11.2

authored by

Luke Granger-Brown and committed by
GitHub
83c134be 78c97f07

+208 -33
+28 -15
pkgs/development/python-modules/jupytext/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy27 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , GitPython 6 + , jupyter-packaging 7 + , jupyter_client 8 + , jupyterlab 2 9 , markdown-it-py 10 + , mdit-py-plugins 3 11 , nbformat 4 - , pytest 12 + , notebook 13 + , pytestCheckHook 5 14 , pyyaml 6 15 , toml 7 16 }: 8 17 9 18 buildPythonPackage rec { 10 19 pname = "jupytext"; 11 - version = "1.11.0"; 20 + version = "1.11.2"; 21 + format = "pyproject"; 12 22 13 - disabled = isPy27; 23 + disabled = pythonOlder "3.6"; 14 24 15 - src = fetchPypi { 16 - inherit pname version; 17 - sha256 = "9062d001baaa32430fbb94a2c9394ac906db0a58da94e7aa4e414b73fd7d51bc"; 25 + src = fetchFromGitHub { 26 + owner = "mwouts"; 27 + repo = pname; 28 + rev = "v${version}"; 29 + hash = "sha256-S2SKAC2oT4VIVMMDbu/Puo87noAgnQs1hh88JphutA8="; 18 30 }; 19 31 32 + buildInputs = [ jupyter-packaging jupyterlab ]; 20 33 propagatedBuildInputs = [ 21 34 markdown-it-py 35 + mdit-py-plugins 22 36 nbformat 23 37 pyyaml 24 38 toml 25 39 ]; 26 40 27 41 checkInputs = [ 28 - pytest 42 + pytestCheckHook 43 + GitPython 44 + jupyter_client 45 + notebook 29 46 ]; 30 - 31 - # requires test notebooks which are not shipped with the pypi release 32 - # also, pypi no longer includes tests 33 - doCheck = false; 34 - checkPhase = '' 35 - pytest 36 - ''; 47 + # pre-commit tests require a Git repository. 48 + pytestFlagsArray = [ "--ignore-glob='tests/test_pre_commit_*.py'" ]; 49 + pythonImportsCheck = [ "jupytext" "jupytext.cli" ]; 37 50 38 51 meta = with lib; { 39 52 description = "Jupyter notebooks as Markdown documents, Julia, Python or R scripts";
+34
pkgs/development/python-modules/linkify-it-py/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , pytestCheckHook 6 + , uc-micro-py 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "linkify-it-py"; 11 + version = "1.0.1"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.6"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "tsutsu3"; 18 + repo = pname; 19 + rev = "v${version}"; 20 + hash = "sha256-gd51no6VqvIiW9fbCdp30zHG/us6by7FLHV2ul/XJAM="; 21 + }; 22 + 23 + propagatedBuildInputs = [ uc-micro-py ]; 24 + 25 + checkInputs = [ pytestCheckHook ]; 26 + pythonImportsCheck = [ "linkify_it" ]; 27 + 28 + meta = with lib; { 29 + description = "Links recognition library with full unicode support"; 30 + homepage = "https://github.com/tsutsu3/linkify-it-py"; 31 + license = licenses.mit; 32 + maintainers = with maintainers; [ AluisioASG ]; 33 + }; 34 + }
+13 -18
pkgs/development/python-modules/markdown-it-py/default.nix
··· 1 1 { lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder 2 2 , attrs 3 - , coverage 3 + , linkify-it-py 4 4 , psutil 5 5 , pytest-benchmark 6 + , pytest-regressions 7 + , typing-extensions 6 8 }: 7 9 8 10 buildPythonPackage rec { 9 11 pname = "markdown-it-py"; 10 - version = "0.6.2"; 12 + version = "1.0.0"; 13 + format = "pyproject"; 11 14 12 - disabled = pythonOlder "3.7"; 15 + disabled = pythonOlder "3.6"; 13 16 14 17 src = fetchFromGitHub { 15 18 owner = "executablebooks"; 16 - repo = "markdown-it-py"; 19 + repo = pname; 17 20 rev = "v${version}"; 18 - sha256 = "1g9p8pdnvjya436lii63r5gjajhmbhmyh9ngbjqf9dqny05nagz1"; 21 + hash = "sha256-GA7P2I8N+i2ISsVgx58zyhrfKMcZ7pL4X9T/trbsr1Y="; 19 22 }; 20 23 21 - propagatedBuildInputs = [ attrs ]; 24 + propagatedBuildInputs = [ attrs linkify-it-py ] 25 + ++ lib.optional (pythonOlder "3.8") typing-extensions; 22 26 23 27 checkInputs = [ 24 - coverage 25 - pytest-benchmark 26 28 psutil 29 + pytest-benchmark 30 + pytest-regressions 27 31 pytestCheckHook 28 32 ]; 29 - 30 - disabledTests = [ 31 - # Requires the unpackaged pytest-regressions fixture plugin 32 - "test_amsmath" 33 - "test_container" 34 - "test_deflist" 35 - "test_dollarmath" 36 - "test_spec" 37 - "test_texmath" 38 - ]; 33 + pytestImportsCheck = [ "markdown_it" ]; 39 34 40 35 meta = with lib; { 41 36 description = "Markdown parser done right";
+35
pkgs/development/python-modules/mdit-py-plugins/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , markdown-it-py 6 + , pytest-regressions 7 + , pytestCheckHook 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "mdit-py-plugins"; 12 + version = "0.2.8"; 13 + format = "pyproject"; 14 + 15 + disabled = pythonOlder "3.6"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "executablebooks"; 19 + repo = pname; 20 + rev = "v${version}"; 21 + hash = "sha256-MXQjaVDuguGbmby6BQnrTdpq6Mih3HabXuyFxf9jB18="; 22 + }; 23 + 24 + propagatedBuildInputs = [ markdown-it-py ]; 25 + 26 + checkInputs = [ pytestCheckHook pytest-regressions ]; 27 + pythonImportsCheck = [ "mdit_py_plugins" ]; 28 + 29 + meta = with lib; { 30 + description = "Collection of core plugins for markdown-it-py"; 31 + homepage = "https://github.com/executablebooks/mdit-py-plugins"; 32 + license = licenses.mit; 33 + maintainers = with maintainers; [ AluisioASG ]; 34 + }; 35 + }
+59
pkgs/development/python-modules/pytest-regressions/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchpatch 4 + , fetchPypi 5 + , pythonOlder 6 + , matplotlib 7 + , numpy 8 + , pandas 9 + , pillow 10 + , pytest 11 + , pytest-datadir 12 + , pytestCheckHook 13 + , pyyaml 14 + , setuptools-scm 15 + }: 16 + 17 + buildPythonPackage rec { 18 + pname = "pytest-regressions"; 19 + version = "2.2.0"; 20 + format = "setuptools"; 21 + 22 + disabled = pythonOlder "3.6"; 23 + 24 + src = fetchPypi { 25 + inherit pname version; 26 + sha256 = "15a71f77cb266dd4ca94331abe4c339ad056b2b2175e47442711c98cf6d65716"; 27 + }; 28 + 29 + patches = [ 30 + # Make pytest-regressions compatible with NumPy 1.20. 31 + # Should be part of the next release. 32 + (fetchpatch { 33 + url = "https://github.com/ESSS/pytest-regressions/commit/ffad2c7fd1d110f420f4e3ca3d39d90cae18a972.patch"; 34 + sha256 = "sha256-bUna7MnMV6u9oEaZMsFnr4gE28rz/c0O2+Hyk291+l0="; 35 + }) 36 + ]; 37 + 38 + nativeBuildInputs = [ setuptools-scm ]; 39 + buildInputs = [ pytest ]; 40 + propagatedBuildInputs = [ numpy pandas pillow pytest-datadir pyyaml ]; 41 + 42 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 43 + 44 + checkInputs = [ pytestCheckHook matplotlib ]; 45 + pythonImportsCheck = [ "pytest_regressions" "pytest_regressions.plugin" ]; 46 + 47 + meta = with lib; { 48 + description = "Pytest fixtures to write regression tests"; 49 + longDescription = '' 50 + pytest-regressions makes it simple to test general data, images, 51 + files, and numeric tables by saving expected data in a data 52 + directory (courtesy of pytest-datadir) that can be used to verify 53 + that future runs produce the same data. 54 + ''; 55 + homepage = "https://github.com/ESSS/pytest-regressions"; 56 + license = licenses.mit; 57 + maintainers = with maintainers; [ AluisioASG ]; 58 + }; 59 + }
+31
pkgs/development/python-modules/uc-micro-py/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , pytestCheckHook 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "uc-micro-py"; 10 + version = "1.0.1"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.6"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "tsutsu3"; 17 + repo = "uc.micro-py"; 18 + rev = "v${version}"; 19 + hash = "sha256-23mKwoRGjtxpCOC26V8bAN5QEHLDOoSqPeTlUuIrxZ0="; 20 + }; 21 + 22 + checkInputs = [ pytestCheckHook ]; 23 + pythonImportsCheck = [ "uc_micro" ]; 24 + 25 + meta = with lib; { 26 + description = "Micro subset of unicode data files for linkify-it-py"; 27 + homepage = "https://github.com/tsutsu3/uc.micro-py"; 28 + license = licenses.mit; 29 + maintainers = with maintainers; [ AluisioASG ]; 30 + }; 31 + }
+8
pkgs/top-level/python-packages.nix
··· 3895 3895 3896 3896 line_profiler = callPackage ../development/python-modules/line_profiler { }; 3897 3897 3898 + linkify-it-py = callPackage ../development/python-modules/linkify-it-py { }; 3899 + 3898 3900 linode-api = callPackage ../development/python-modules/linode-api { }; 3899 3901 3900 3902 linode = callPackage ../development/python-modules/linode { }; ··· 4114 4116 mcstatus = callPackage ../development/python-modules/mcstatus { }; 4115 4117 4116 4118 md2gemini = callPackage ../development/python-modules/md2gemini { }; 4119 + 4120 + mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { }; 4117 4121 4118 4122 MDP = callPackage ../development/python-modules/mdp { }; 4119 4123 ··· 6398 6402 6399 6403 pytest-random-order = callPackage ../development/python-modules/pytest-random-order { }; 6400 6404 6405 + pytest-regressions = callPackage ../development/python-modules/pytest-regressions { }; 6406 + 6401 6407 pytest-relaxed = callPackage ../development/python-modules/pytest-relaxed { }; 6402 6408 6403 6409 pytest-remotedata = callPackage ../development/python-modules/pytest-remotedata { }; ··· 8314 8320 ua-parser = callPackage ../development/python-modules/ua-parser { }; 8315 8321 8316 8322 uarray = callPackage ../development/python-modules/uarray { }; 8323 + 8324 + uc-micro-py = callPackage ../development/python-modules/uc-micro-py { }; 8317 8325 8318 8326 ueberzug = callPackage ../development/python-modules/ueberzug { 8319 8327 inherit (pkgs.xorg) libX11 libXext;