Loading pkgs/development/python-modules/bson/default.nix +28 −9 Original line number Diff line number Diff line Loading @@ -2,28 +2,44 @@ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, setuptools, python-dateutil, six, pytestCheckHook, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "bson"; version = "0.5.10"; format = "setuptools"; pyproject = true; src = fetchFromGitHub { owner = "py-bson"; repo = "bson"; tag = version; tag = finalAttrs.version; hash = "sha256-mirRpo27RoOBlwxVOKnHaDIzJOErp7c2VxCOunUm/u4="; }; postPatch = '' find . -type f -name '*.py' -exec sed -i 's|assertEquals|assertEqual|g' {} + ''; patches = [ # Upstream PR: https://github.com/py-bson/bson/pull/113 (fetchpatch { name = "python-3.11.patch"; url = "https://github.com/py-bson/bson/commit/5346e73124de8a1f9e2a1960501416529e4cee02.patch"; hash = "sha256-kNs00j/FDjb2av+0WMORrCo75NcuaJXUl4SbYlksnfo="; }) # Upstream PR: https://github.com/py-bson/bson/pull/140 (fetchpatch { name = "python-3.14.patch"; url = "https://github.com/py-bson/bson/commit/4e6b4c206f7204034ef74bff8ae84a95d76d1684.patch"; includes = [ "setup.py" ]; hash = "sha256-JOmW/KMqzFdXKH4TMR/PG1YU3SvLTBc3L3E9kXag3bQ="; }) ]; build-system = [ setuptools ]; propagatedBuildInputs = [ dependencies = [ python-dateutil six ]; Loading @@ -35,7 +51,10 @@ buildPythonPackage rec { meta = { description = "BSON codec for Python"; homepage = "https://github.com/py-bson/bson"; license = lib.licenses.asl20; license = [ lib.licenses.asl20 lib.licenses.bsd3 ]; maintainers = with lib.maintainers; [ fab ]; }; } }) Loading
pkgs/development/python-modules/bson/default.nix +28 −9 Original line number Diff line number Diff line Loading @@ -2,28 +2,44 @@ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, setuptools, python-dateutil, six, pytestCheckHook, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "bson"; version = "0.5.10"; format = "setuptools"; pyproject = true; src = fetchFromGitHub { owner = "py-bson"; repo = "bson"; tag = version; tag = finalAttrs.version; hash = "sha256-mirRpo27RoOBlwxVOKnHaDIzJOErp7c2VxCOunUm/u4="; }; postPatch = '' find . -type f -name '*.py' -exec sed -i 's|assertEquals|assertEqual|g' {} + ''; patches = [ # Upstream PR: https://github.com/py-bson/bson/pull/113 (fetchpatch { name = "python-3.11.patch"; url = "https://github.com/py-bson/bson/commit/5346e73124de8a1f9e2a1960501416529e4cee02.patch"; hash = "sha256-kNs00j/FDjb2av+0WMORrCo75NcuaJXUl4SbYlksnfo="; }) # Upstream PR: https://github.com/py-bson/bson/pull/140 (fetchpatch { name = "python-3.14.patch"; url = "https://github.com/py-bson/bson/commit/4e6b4c206f7204034ef74bff8ae84a95d76d1684.patch"; includes = [ "setup.py" ]; hash = "sha256-JOmW/KMqzFdXKH4TMR/PG1YU3SvLTBc3L3E9kXag3bQ="; }) ]; build-system = [ setuptools ]; propagatedBuildInputs = [ dependencies = [ python-dateutil six ]; Loading @@ -35,7 +51,10 @@ buildPythonPackage rec { meta = { description = "BSON codec for Python"; homepage = "https://github.com/py-bson/bson"; license = lib.licenses.asl20; license = [ lib.licenses.asl20 lib.licenses.bsd3 ]; maintainers = with lib.maintainers; [ fab ]; }; } })