python313Packages.pendulum: 3.0.0 -> 3.1.0

https://github.com/sdispater/pendulum/blob/refs/tags/3.1.0/CHANGELOG.md
This commit is contained in:
Martin Weinelt
2025-05-23 08:37:09 -07:00
committed by Robert Schütz
parent ac8a061b03
commit f05729b94c
@@ -27,42 +27,24 @@
buildPythonPackage rec {
pname = "pendulum";
version = "3.0.0";
version = "3.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "sdispater";
repo = "pendulum";
tag = version;
hash = "sha256-v0kp8dklvDeC7zdTDOpIbpuj13aGub+oCaYz2ytkEpI=";
hash = "sha256-ZjQaN5vT1+3UxwLNNsUmU4gSs6reUl90VSEumS0sEGY=";
};
postPatch = ''
substituteInPlace rust/Cargo.lock \
--replace "3.0.0-beta-1" "3.0.0"
'';
cargoRoot = "rust";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
sourceRoot = "${src.name}/rust";
name = "${pname}-${version}";
hash = "sha256-6WgGIfz9I+xRJqXWhjfGDZM1umYwVlUEpLAiecZNZmI=";
postPatch = ''
substituteInPlace Cargo.lock \
--replace "3.0.0-beta-1" "3.0.0"
'';
hash = "sha256-F5bCuvI8DcyeUTS7UyYBixCjuGFKGOXPw8HLVlYKuxA=";
};
patches = [
# fix build on 32bit
# https://github.com/sdispater/pendulum/pull/842
(fetchpatch {
url = "https://github.com/sdispater/pendulum/commit/6f2fcb8b025146ae768a5889be4a437fbd3156d6.patch";
hash = "sha256-47591JvpADxGQT2q7EYWHfStaiWyP7dt8DPTq0tiRvk=";
})
];
nativeBuildInputs = [
poetry-core
rustPlatform.maturinBuildHook