Merge pull request #301861 from fabaff/pprintpp-fix
python311Packages.pprintpp: disable failing tests
This commit is contained in:
commit
8a3f23ca03
|
@ -1,28 +1,29 @@
|
||||||
{ lib
|
{
|
||||||
, attrs
|
lib,
|
||||||
, bidict
|
attrs,
|
||||||
, bitstruct
|
bidict,
|
||||||
, buildPythonPackage
|
bitstruct,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, fetchpatch
|
fetchFromGitHub,
|
||||||
, more-itertools
|
fetchpatch,
|
||||||
, poetry-core
|
more-itertools,
|
||||||
, pprintpp
|
poetry-core,
|
||||||
, pythonOlder
|
pprintpp,
|
||||||
, pythonRelaxDepsHook
|
pythonOlder,
|
||||||
, tbm-utils
|
pythonRelaxDepsHook,
|
||||||
|
tbm-utils,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "audio-metadata";
|
pname = "audio-metadata";
|
||||||
version = "0.11.1";
|
version = "0.11.1";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "thebigmunch";
|
owner = "thebigmunch";
|
||||||
repo = pname;
|
repo = "audio-metadata";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-5ZX4HwbuB9ZmFfHuxaMCrn3R7/znuDsoyqqLql2Nizg=";
|
hash = "sha256-5ZX4HwbuB9ZmFfHuxaMCrn3R7/znuDsoyqqLql2Nizg=";
|
||||||
};
|
};
|
||||||
|
@ -41,12 +42,11 @@ buildPythonPackage rec {
|
||||||
"more-itertools"
|
"more-itertools"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
pythonRelaxDepsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
attrs
|
attrs
|
||||||
bidict
|
bidict
|
||||||
bitstruct
|
bitstruct
|
||||||
|
@ -58,13 +58,11 @@ buildPythonPackage rec {
|
||||||
# Tests require ward which is not ready to be used
|
# Tests require ward which is not ready to be used
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "audio_metadata" ];
|
||||||
"audio_metadata"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Library for handling the metadata from audio files";
|
||||||
homepage = "https://github.com/thebigmunch/audio-metadata";
|
homepage = "https://github.com/thebigmunch/audio-metadata";
|
||||||
description = "A library for reading and, in the future, writing metadata from audio files";
|
|
||||||
changelog = "https://github.com/thebigmunch/audio-metadata/blob/${version}/CHANGELOG.md";
|
changelog = "https://github.com/thebigmunch/audio-metadata/blob/${version}/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ jakewaksbaum ];
|
maintainers = with maintainers; [ jakewaksbaum ];
|
||||||
|
|
|
@ -1,17 +1,20 @@
|
||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, fetchpatch
|
buildPythonPackage,
|
||||||
, fetchPypi
|
fetchpatch,
|
||||||
, nose
|
fetchPypi,
|
||||||
, parameterized
|
parameterized,
|
||||||
, python
|
pytestCheckHook,
|
||||||
, pythonOlder
|
pynose,
|
||||||
|
python,
|
||||||
|
pythonOlder,
|
||||||
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pprintpp";
|
pname = "pprintpp";
|
||||||
version = "0.4.0";
|
version = "0.4.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -34,25 +37,31 @@ buildPythonPackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
nose
|
|
||||||
parameterized
|
parameterized
|
||||||
|
pynose
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "pprintpp" ];
|
||||||
${python.interpreter} test.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pytestFlagsArray = [ "test.py" ];
|
||||||
"pprintpp"
|
|
||||||
|
disabledTests = [
|
||||||
|
# AttributeError: 'EncodedFile' object has no attribute 'getvalue'
|
||||||
|
"test_pp"
|
||||||
|
"test_pp_pprint"
|
||||||
|
"test_fmt"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A drop-in replacement for pprint that's actually pretty";
|
description = "A drop-in replacement for pprint that's actually pretty";
|
||||||
mainProgram = "pypprint";
|
|
||||||
homepage = "https://github.com/wolever/pprintpp";
|
homepage = "https://github.com/wolever/pprintpp";
|
||||||
changelog = "https://github.com/wolever/pprintpp/blob/${version}/CHANGELOG.txt";
|
changelog = "https://github.com/wolever/pprintpp/blob/${version}/CHANGELOG.txt";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [ jakewaksbaum ];
|
maintainers = with maintainers; [ jakewaksbaum ];
|
||||||
|
mainProgram = "pypprint";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,38 +1,58 @@
|
||||||
{ stdenv
|
{
|
||||||
, lib
|
lib,
|
||||||
, buildPythonPackage
|
stdenv,
|
||||||
, fetchFromGitHub
|
attrs,
|
||||||
, attrs
|
buildPythonPackage,
|
||||||
, pendulum
|
fetchFromGitHub,
|
||||||
, poetry-core
|
fetchpatch,
|
||||||
, pprintpp
|
pendulum,
|
||||||
, pytestCheckHook
|
poetry-core,
|
||||||
, pythonRelaxDepsHook
|
pprintpp,
|
||||||
, wrapt
|
pytestCheckHook,
|
||||||
|
pythonOlder,
|
||||||
|
pythonRelaxDepsHook,
|
||||||
|
wrapt,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tbm-utils";
|
pname = "tbm-utils";
|
||||||
version = "2.6.0";
|
version = "2.6.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "thebigmunch";
|
owner = "thebigmunch";
|
||||||
repo = pname;
|
repo = "tbm-utils";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-AEKawsAxDSDNkIaXEFFgdEBOY2PpASDrhlDrsnM5eyA=";
|
hash = "sha256-AEKawsAxDSDNkIaXEFFgdEBOY2PpASDrhlDrsnM5eyA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Migrate to pendulum > 3, https://github.com/thebigmunch/tbm-utils/pull/3
|
||||||
|
(fetchpatch {
|
||||||
|
name = "support-pendulum-3.patch";
|
||||||
|
url = "https://github.com/thebigmunch/tbm-utils/commit/473534fae2d9a8dea9100cead6c54cab3f5cd0cd.patch";
|
||||||
|
hash = "sha256-3T0KhSmO9r1vM67FWEnTZMQV4b5jS2xtPHI0t9NnCmI=";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
name = "update-testsupport-pendulum-3.patch";
|
||||||
|
url = "https://github.com/thebigmunch/tbm-utils/commit/a0331d0c15f11cd26bfbb42eebd17296167161ed.patch";
|
||||||
|
hash = "sha256-KG6yfnnBltavbNvIBTdbK+CPXwZTLYl14925RY2a8vs=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace 'poetry>=1.0.0' 'poetry-core' \
|
--replace-fail 'poetry>=1.0.0' 'poetry-core' \
|
||||||
--replace 'poetry.masonry.api' 'poetry.core.masonry.api'
|
--replace-fail 'poetry.masonry.api' 'poetry.core.masonry.api'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
pythonRelaxDeps = [ "attrs" ];
|
||||||
poetry-core
|
|
||||||
pythonRelaxDepsHook
|
build-system = [ poetry-core ];
|
||||||
];
|
|
||||||
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
attrs
|
attrs
|
||||||
|
@ -41,13 +61,7 @@ buildPythonPackage rec {
|
||||||
wrapt
|
wrapt
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
"attrs"
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = lib.optionals stdenv.isDarwin [
|
disabledTests = lib.optionals stdenv.isDarwin [
|
||||||
# Skip on macOS because /etc/localtime is accessed through the pendulum
|
# Skip on macOS because /etc/localtime is accessed through the pendulum
|
||||||
|
@ -63,14 +77,13 @@ buildPythonPackage rec {
|
||||||
"tests/test_misc.py"
|
"tests/test_misc.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "tbm_utils" ];
|
||||||
"tbm_utils"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A commonly-used set of utilities";
|
description = "A commonly-used set of utilities";
|
||||||
homepage = "https://github.com/thebigmunch/tbm-utils";
|
homepage = "https://github.com/thebigmunch/tbm-utils";
|
||||||
changelog = "https://github.com/thebigmunch/tbm-utils/blob/${version}/CHANGELOG.md";
|
changelog = "https://github.com/thebigmunch/tbm-utils/blob/${version}/CHANGELOG.md";
|
||||||
license = [ lib.licenses.mit ];
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,35 +9,29 @@
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pprintpp
|
, pprintpp
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pythonRelaxDepsHook
|
|
||||||
, rich
|
, rich
|
||||||
, tomli
|
, tomli
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ward";
|
pname = "ward";
|
||||||
version = "0.67.0b0";
|
version = "0.68.0b0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "darrenburns";
|
owner = "darrenburns";
|
||||||
repo = pname;
|
repo = "ward";
|
||||||
rev = "refs/tags/release%2F${version}";
|
rev = "refs/tags/release%2F${version}";
|
||||||
hash = "sha256-4dEMEEPySezgw3dIcYMl56HrhyaYlql9JvtamOn7Y8g=";
|
hash = "sha256-4dEMEEPySezgw3dIcYMl56HrhyaYlql9JvtamOn7Y8g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
build-system = [
|
||||||
"rich"
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
poetry-core
|
poetry-core
|
||||||
pythonRelaxDepsHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
click
|
click
|
||||||
rich
|
rich
|
||||||
tomli
|
tomli
|
||||||
|
@ -57,10 +51,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Test framework for Python";
|
description = "Test framework for Python";
|
||||||
mainProgram = "ward";
|
|
||||||
homepage = "https://github.com/darrenburns/ward";
|
homepage = "https://github.com/darrenburns/ward";
|
||||||
changelog = "https://github.com/darrenburns/ward/releases/tag/release%2F${version}";
|
changelog = "https://github.com/darrenburns/ward/releases/tag/release%2F${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "ward";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user