diff options
author | natsukium <tomoya.otabi@gmail.com> | 2023-11-25 00:57:55 +0900 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-12-20 20:15:28 +0100 |
commit | 0970c7a6649701f87727fbdf455ed1a458755708 (patch) | |
tree | 9b1594a0a533d5d4013416939d8502b3a9bbf27f /pkgs/development/python-modules/demetriek | |
parent | 8cf8a15095c97c2eff1eca7afb3165c1b2046f57 (diff) |
python311Packages.demetriek: apply a pydantic>=2 compatible patch
Diffstat (limited to 'pkgs/development/python-modules/demetriek')
-rw-r--r-- | pkgs/development/python-modules/demetriek/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/demetriek/default.nix b/pkgs/development/python-modules/demetriek/default.nix index b553a1b0837a8..4d0f33a138730 100644 --- a/pkgs/development/python-modules/demetriek/default.nix +++ b/pkgs/development/python-modules/demetriek/default.nix @@ -5,6 +5,7 @@ , buildPythonPackage , pydantic , fetchFromGitHub +, fetchpatch , poetry-core , yarl , aresponses @@ -27,6 +28,16 @@ buildPythonPackage rec { hash = "sha256-LCHHBcZgO9gw5jyaJiiS4lKyb0ut+PJvKTylIvIKHhc="; }; + patches = [ + # https://github.com/frenck/python-demetriek/pull/531 + (fetchpatch { + name = "pydantic_2-compatibility.patch"; + url = "https://github.com/frenck/python-demetriek/commit/e677fe5b735b6b28572e3e5fd6aab56fc056f5e6.patch"; + excludes = [ "pyproject.toml" "poetry.lock" ]; + hash = "sha256-oMVR45KHDhcPId/0X9obJXCPE8s1gk5IgsGsgZesdZw="; + }) + ]; + postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ |