Merge pull request #270335 from dotlambda/tzlocal-5.2

python311Packages.tzlocal: 5.0.1 -> 5.2
This commit is contained in:
Robert Schütz 2023-12-01 14:51:24 -08:00 committed by GitHub
commit 73b5e1f09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 32 deletions

View File

@ -4,32 +4,25 @@
, pythonOlder
, fetchPypi
, setuptools
, wheel
, pytz-deprecation-shim
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tzlocal";
version = "5.0.1"; # version needs to be compatible with APScheduler
version = "5.2"; # version needs to be compatible with APScheduler
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
format = "pyproject";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-RuuZrUvbcfP3K30k9CZ3U+JAlE7PwW8l0nGbqJgnqAM=";
hash = "sha256-jTmSBVePGpNCgWQJzB5GqT69V1XjnqLYUzS+qRG/Dm4=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
pytz-deprecation-shim
];
nativeCheckInputs = [

View File

@ -1,23 +1,28 @@
{ lib
, python3Packages
, python3
, fetchFromGitHub
, godot3-server
}:
let lark080 = python3Packages.lark.overrideAttrs (old: rec {
# gdtoolkit needs exactly this lark version
version = "0.8.0";
src = fetchFromGitHub {
owner = "lark-parser";
repo = "lark";
rev = version;
hash = "sha256-KN9buVlH8hJ8t0ZP5yefeYM5vH5Gg7a7TEDGKJYpozs=";
fetchSubmodules = true;
let
python = python3.override {
packageOverrides = self: super: {
lark = super.lark.overridePythonAttrs (old: rec {
# gdtoolkit needs exactly this lark version
version = "0.8.0";
src = fetchFromGitHub {
owner = "lark-parser";
repo = "lark";
rev = version;
hash = "sha256-KN9buVlH8hJ8t0ZP5yefeYM5vH5Gg7a7TEDGKJYpozs=";
fetchSubmodules = true;
};
patches = [ ];
});
};
};
});
in
python3Packages.buildPythonApplication rec {
python.pkgs.buildPythonApplication rec {
pname = "gdtoolkit";
version = "3.3.1";
@ -29,18 +34,18 @@ python3Packages.buildPythonApplication rec {
sha256 = "13nnpwy550jf5qnm9ixpxl1bwfnhhbiys8vqfd25g3aim4bm3gnn";
};
disabled = python3Packages.pythonOlder "3.7";
disabled = python.pythonOlder "3.7";
propagatedBuildInputs = [ lark080
] ++ (with python3Packages; [
propagatedBuildInputs = with python.pkgs; [
docopt
lark
pyyaml
setuptools
]);
];
doCheck = true;
nativeCheckInputs = with python3Packages; [
nativeCheckInputs = with python.pkgs; [
pytestCheckHook
hypothesis
godot3-server

View File

@ -16,6 +16,8 @@ let
sha256 = "sha256-ctdPPKPSD4weidyhyj7RCV89baIhmuxucF3/Ojx1Efo=";
};
patches = [ ];
disabledTestPaths = [ "tests/test_nearley/test_nearley.py" ];
});
};

View File

@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, fetchPypi
, python3
}:
@ -8,11 +9,16 @@ let
packageOverrides = self: super: {
# autosuspend is incompatible with tzlocal v5
# See https://github.com/regebro/tzlocal#api-change
tzlocal = super.tzlocal.overridePythonAttrs (prev: {
src = prev.src.override {
version = "4.3.1";
tzlocal = super.tzlocal.overridePythonAttrs (prev: rec {
version = "4.3.1";
src = fetchPypi {
inherit (prev) pname;
inherit version;
hash = "sha256-7jLvjCCAPBmpbtNmrd09SnKe9jCctcc1mgzC7ut/pGo=";
};
propagatedBuildInputs = with self; [
pytz-deprecation-shim
];
});
};
};