mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-12 10:07:21 +00:00
python312Packages.ics: disable failing test
(cherry picked from commit 17f73d6f9a
)
This commit is contained in:
parent
bcedd17714
commit
63956efd80
@ -16,7 +16,7 @@ buildPythonPackage rec {
|
|||||||
version = "0.7.2";
|
version = "0.7.2";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ics-py";
|
owner = "ics-py";
|
||||||
@ -25,9 +25,14 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8=";
|
hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ];
|
postPatch = ''
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace-fail "--pep8" ""
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
attrs
|
attrs
|
||||||
arrow
|
arrow
|
||||||
tatsu
|
tatsu
|
||||||
@ -38,18 +43,13 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# 0.8 will move to python-dateutil
|
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "arrow>=0.11,<0.15" "arrow"
|
|
||||||
substituteInPlace setup.cfg --replace "--pep8" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Failure seems to be related to arrow > 1.0
|
# Failure seems to be related to arrow > 1.0
|
||||||
"test_event"
|
"test_event"
|
||||||
# Broke with TatSu 5.7:
|
# Broke with TatSu 5.7:
|
||||||
"test_many_lines"
|
"test_many_lines"
|
||||||
|
# AssertionError: 'Europe/Berlin' not found in "tzfile('Atlantic/Jan_Mayen')"
|
||||||
|
"test_timezone_not_dropped"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "ics" ];
|
pythonImportsCheck = [ "ics" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user