Merge pull request #301861 from fabaff/pprintpp-fix

python311Packages.pprintpp: disable failing tests

authored by Fabian Affolter and committed by GitHub 8a3f23ca 76422a76

+97 -83
+22 -24
pkgs/development/python-modules/audio-metadata/default.nix
··· 1 - { lib 2 - , attrs 3 - , bidict 4 - , bitstruct 5 - , buildPythonPackage 6 - , fetchFromGitHub 7 - , fetchpatch 8 - , more-itertools 9 - , poetry-core 10 - , pprintpp 11 - , pythonOlder 12 - , pythonRelaxDepsHook 13 - , tbm-utils 14 }: 15 16 buildPythonPackage rec { 17 pname = "audio-metadata"; 18 version = "0.11.1"; 19 - format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "thebigmunch"; 25 - repo = pname; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-5ZX4HwbuB9ZmFfHuxaMCrn3R7/znuDsoyqqLql2Nizg="; 28 }; ··· 41 "more-itertools" 42 ]; 43 44 - nativeBuildInputs = [ 45 - poetry-core 46 - pythonRelaxDepsHook 47 - ]; 48 49 - propagatedBuildInputs = [ 50 attrs 51 bidict 52 bitstruct ··· 58 # Tests require ward which is not ready to be used 59 doCheck = false; 60 61 - pythonImportsCheck = [ 62 - "audio_metadata" 63 - ]; 64 65 meta = with lib; { 66 homepage = "https://github.com/thebigmunch/audio-metadata"; 67 - description = "A library for reading and, in the future, writing metadata from audio files"; 68 changelog = "https://github.com/thebigmunch/audio-metadata/blob/${version}/CHANGELOG.md"; 69 license = licenses.mit; 70 maintainers = with maintainers; [ jakewaksbaum ];
··· 1 + { 2 + lib, 3 + attrs, 4 + bidict, 5 + bitstruct, 6 + buildPythonPackage, 7 + fetchFromGitHub, 8 + fetchpatch, 9 + more-itertools, 10 + poetry-core, 11 + pprintpp, 12 + pythonOlder, 13 + pythonRelaxDepsHook, 14 + tbm-utils, 15 }: 16 17 buildPythonPackage rec { 18 pname = "audio-metadata"; 19 version = "0.11.1"; 20 + pyproject = true; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "thebigmunch"; 26 + repo = "audio-metadata"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-5ZX4HwbuB9ZmFfHuxaMCrn3R7/znuDsoyqqLql2Nizg="; 29 }; ··· 42 "more-itertools" 43 ]; 44 45 + build-system = [ poetry-core ]; 46 + 47 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 48 49 + dependencies = [ 50 attrs 51 bidict 52 bitstruct ··· 58 # Tests require ward which is not ready to be used 59 doCheck = false; 60 61 + pythonImportsCheck = [ "audio_metadata" ]; 62 63 meta = with lib; { 64 + description = "Library for handling the metadata from audio files"; 65 homepage = "https://github.com/thebigmunch/audio-metadata"; 66 changelog = "https://github.com/thebigmunch/audio-metadata/blob/${version}/CHANGELOG.md"; 67 license = licenses.mit; 68 maintainers = with maintainers; [ jakewaksbaum ];
+25 -16
pkgs/development/python-modules/pprintpp/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchpatch 4 - , fetchPypi 5 - , nose 6 - , parameterized 7 - , python 8 - , pythonOlder 9 }: 10 11 buildPythonPackage rec { 12 pname = "pprintpp"; 13 version = "0.4.0"; 14 - format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 ··· 34 }) 35 ]; 36 37 nativeCheckInputs = [ 38 - nose 39 parameterized 40 ]; 41 42 - checkPhase = '' 43 - ${python.interpreter} test.py 44 - ''; 45 46 - pythonImportsCheck = [ 47 - "pprintpp" 48 ]; 49 50 meta = with lib; { 51 description = "A drop-in replacement for pprint that's actually pretty"; 52 - mainProgram = "pypprint"; 53 homepage = "https://github.com/wolever/pprintpp"; 54 changelog = "https://github.com/wolever/pprintpp/blob/${version}/CHANGELOG.txt"; 55 license = licenses.bsd2; 56 maintainers = with maintainers; [ jakewaksbaum ]; 57 }; 58 }
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchpatch, 5 + fetchPypi, 6 + parameterized, 7 + pytestCheckHook, 8 + pynose, 9 + python, 10 + pythonOlder, 11 + setuptools, 12 }: 13 14 buildPythonPackage rec { 15 pname = "pprintpp"; 16 version = "0.4.0"; 17 + pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 ··· 37 }) 38 ]; 39 40 + build-system = [ setuptools ]; 41 + 42 nativeCheckInputs = [ 43 parameterized 44 + pynose 45 + pytestCheckHook 46 ]; 47 48 + pythonImportsCheck = [ "pprintpp" ]; 49 50 + pytestFlagsArray = [ "test.py" ]; 51 + 52 + disabledTests = [ 53 + # AttributeError: 'EncodedFile' object has no attribute 'getvalue' 54 + "test_pp" 55 + "test_pp_pprint" 56 + "test_fmt" 57 ]; 58 59 meta = with lib; { 60 description = "A drop-in replacement for pprint that's actually pretty"; 61 homepage = "https://github.com/wolever/pprintpp"; 62 changelog = "https://github.com/wolever/pprintpp/blob/${version}/CHANGELOG.txt"; 63 license = licenses.bsd2; 64 maintainers = with maintainers; [ jakewaksbaum ]; 65 + mainProgram = "pypprint"; 66 }; 67 }
+44 -31
pkgs/development/python-modules/tbm-utils/default.nix
··· 1 - { stdenv 2 - , lib 3 - , buildPythonPackage 4 - , fetchFromGitHub 5 - , attrs 6 - , pendulum 7 - , poetry-core 8 - , pprintpp 9 - , pytestCheckHook 10 - , pythonRelaxDepsHook 11 - , wrapt 12 }: 13 14 buildPythonPackage rec { 15 pname = "tbm-utils"; 16 version = "2.6.0"; 17 - format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "thebigmunch"; 21 - repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-AEKawsAxDSDNkIaXEFFgdEBOY2PpASDrhlDrsnM5eyA="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 - --replace 'poetry>=1.0.0' 'poetry-core' \ 29 - --replace 'poetry.masonry.api' 'poetry.core.masonry.api' 30 ''; 31 32 - nativeBuildInputs = [ 33 - poetry-core 34 - pythonRelaxDepsHook 35 - ]; 36 37 propagatedBuildInputs = [ 38 attrs ··· 41 wrapt 42 ]; 43 44 - pythonRelaxDeps = [ 45 - "attrs" 46 - ]; 47 - 48 - nativeCheckInputs = [ 49 - pytestCheckHook 50 - ]; 51 52 disabledTests = lib.optionals stdenv.isDarwin [ 53 # Skip on macOS because /etc/localtime is accessed through the pendulum ··· 63 "tests/test_misc.py" 64 ]; 65 66 - pythonImportsCheck = [ 67 - "tbm_utils" 68 - ]; 69 70 - meta = { 71 description = "A commonly-used set of utilities"; 72 homepage = "https://github.com/thebigmunch/tbm-utils"; 73 changelog = "https://github.com/thebigmunch/tbm-utils/blob/${version}/CHANGELOG.md"; 74 - license = [ lib.licenses.mit ]; 75 }; 76 }
··· 1 + { 2 + lib, 3 + stdenv, 4 + attrs, 5 + buildPythonPackage, 6 + fetchFromGitHub, 7 + fetchpatch, 8 + pendulum, 9 + poetry-core, 10 + pprintpp, 11 + pytestCheckHook, 12 + pythonOlder, 13 + pythonRelaxDepsHook, 14 + wrapt, 15 }: 16 17 buildPythonPackage rec { 18 pname = "tbm-utils"; 19 version = "2.6.0"; 20 + pyproject = true; 21 + 22 + disabled = pythonOlder "3.9"; 23 24 src = fetchFromGitHub { 25 owner = "thebigmunch"; 26 + repo = "tbm-utils"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-AEKawsAxDSDNkIaXEFFgdEBOY2PpASDrhlDrsnM5eyA="; 29 }; 30 31 + patches = [ 32 + # Migrate to pendulum > 3, https://github.com/thebigmunch/tbm-utils/pull/3 33 + (fetchpatch { 34 + name = "support-pendulum-3.patch"; 35 + url = "https://github.com/thebigmunch/tbm-utils/commit/473534fae2d9a8dea9100cead6c54cab3f5cd0cd.patch"; 36 + hash = "sha256-3T0KhSmO9r1vM67FWEnTZMQV4b5jS2xtPHI0t9NnCmI="; 37 + }) 38 + (fetchpatch { 39 + name = "update-testsupport-pendulum-3.patch"; 40 + url = "https://github.com/thebigmunch/tbm-utils/commit/a0331d0c15f11cd26bfbb42eebd17296167161ed.patch"; 41 + hash = "sha256-KG6yfnnBltavbNvIBTdbK+CPXwZTLYl14925RY2a8vs="; 42 + }) 43 + ]; 44 + 45 postPatch = '' 46 substituteInPlace pyproject.toml \ 47 + --replace-fail 'poetry>=1.0.0' 'poetry-core' \ 48 + --replace-fail 'poetry.masonry.api' 'poetry.core.masonry.api' 49 ''; 50 51 + pythonRelaxDeps = [ "attrs" ]; 52 + 53 + build-system = [ poetry-core ]; 54 + 55 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 56 57 propagatedBuildInputs = [ 58 attrs ··· 61 wrapt 62 ]; 63 64 + nativeCheckInputs = [ pytestCheckHook ]; 65 66 disabledTests = lib.optionals stdenv.isDarwin [ 67 # Skip on macOS because /etc/localtime is accessed through the pendulum ··· 77 "tests/test_misc.py" 78 ]; 79 80 + pythonImportsCheck = [ "tbm_utils" ]; 81 82 + meta = with lib; { 83 description = "A commonly-used set of utilities"; 84 homepage = "https://github.com/thebigmunch/tbm-utils"; 85 changelog = "https://github.com/thebigmunch/tbm-utils/blob/${version}/CHANGELOG.md"; 86 + license = licenses.mit; 87 + maintainers = with maintainers; [ ]; 88 }; 89 }
+6 -12
pkgs/development/python-modules/ward/default.nix
··· 9 , poetry-core 10 , pprintpp 11 , pythonOlder 12 - , pythonRelaxDepsHook 13 , rich 14 , tomli 15 }: 16 17 buildPythonPackage rec { 18 pname = "ward"; 19 - version = "0.67.0b0"; 20 - format = "pyproject"; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "darrenburns"; 26 - repo = pname; 27 rev = "refs/tags/release%2F${version}"; 28 hash = "sha256-4dEMEEPySezgw3dIcYMl56HrhyaYlql9JvtamOn7Y8g="; 29 }; 30 31 - pythonRelaxDeps = [ 32 - "rich" 33 - ]; 34 - 35 - nativeBuildInputs = [ 36 poetry-core 37 - pythonRelaxDepsHook 38 ]; 39 40 - propagatedBuildInputs = [ 41 click 42 rich 43 tomli ··· 57 58 meta = with lib; { 59 description = "Test framework for Python"; 60 - mainProgram = "ward"; 61 homepage = "https://github.com/darrenburns/ward"; 62 changelog = "https://github.com/darrenburns/ward/releases/tag/release%2F${version}"; 63 license = licenses.mit; 64 maintainers = with maintainers; [ fab ]; 65 }; 66 }
··· 9 , poetry-core 10 , pprintpp 11 , pythonOlder 12 , rich 13 , tomli 14 }: 15 16 buildPythonPackage rec { 17 pname = "ward"; 18 + version = "0.68.0b0"; 19 + pyproject = true; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "darrenburns"; 25 + repo = "ward"; 26 rev = "refs/tags/release%2F${version}"; 27 hash = "sha256-4dEMEEPySezgw3dIcYMl56HrhyaYlql9JvtamOn7Y8g="; 28 }; 29 30 + build-system = [ 31 poetry-core 32 ]; 33 34 + dependencies = [ 35 click 36 rich 37 tomli ··· 51 52 meta = with lib; { 53 description = "Test framework for Python"; 54 homepage = "https://github.com/darrenburns/ward"; 55 changelog = "https://github.com/darrenburns/ward/releases/tag/release%2F${version}"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ fab ]; 58 + mainProgram = "ward"; 59 }; 60 }