From 7945afe39d67823d0ce9e208bc5779d526621757 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Mon, 20 Jan 2025 18:00:04 +0800 Subject: [PATCH 1/2] python313Packages.shapely: build with cython3 --- pkgs/development/python-modules/shapely/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/shapely/default.nix b/pkgs/development/python-modules/shapely/default.nix index 914b6deccb6ca..9e078d92610c4 100644 --- a/pkgs/development/python-modules/shapely/default.nix +++ b/pkgs/development/python-modules/shapely/default.nix @@ -7,7 +7,7 @@ pytestCheckHook, pythonOlder, - cython_0, + cython, geos, numpy, oldest-supported-numpy, @@ -36,7 +36,7 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ - cython_0 + cython geos # for geos-config oldest-supported-numpy setuptools @@ -45,7 +45,7 @@ buildPythonPackage rec { buildInputs = [ geos ]; - propagatedBuildInputs = [ numpy ]; + dependencies = [ numpy ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -68,11 +68,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "shapely" ]; - meta = with lib; { + meta = { changelog = "https://github.com/shapely/shapely/blob/${version}/CHANGES.txt"; description = "Manipulation and analysis of geometric objects"; homepage = "https://github.com/shapely/shapely"; - license = licenses.bsd3; - maintainers = teams.geospatial.members; + license = lib.licenses.bsd3; + maintainers = lib.teams.geospatial.members; }; } From 42d2677d092a8cce78ec41238a9f91d8879e55f6 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Mon, 20 Jan 2025 12:50:40 +0800 Subject: [PATCH 2/2] litestar: build for all python version --- pkgs/top-level/python-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5a8874b6eeb7a..6969c03ce6737 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7544,6 +7544,10 @@ self: super: with self; { litemapy = callPackage ../development/python-modules/litemapy { }; + litestar = toPythonModule (pkgs.litestar.override { + python3Packages = pythonPackages; + }); + litestar-htmx = callPackage ../development/python-modules/litestar-htmx { }; littleutils = callPackage ../development/python-modules/littleutils { };