From 9daa809fe83d13f2ae75a012d0a82ae0d06344f1 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Wed, 15 Jul 2026 00:36:52 +0200 Subject: [PATCH] python3Packages.stone: 3.3.9 -> 3.5.2 --- .../python-modules/stone/default.nix | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/stone/default.nix b/pkgs/development/python-modules/stone/default.nix index 7fc25bd40763..bc097a2b19e0 100644 --- a/pkgs/development/python-modules/stone/default.nix +++ b/pkgs/development/python-modules/stone/default.nix @@ -8,33 +8,37 @@ ply, pytestCheckHook, setuptools, - six, + setuptools-scm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "stone"; - version = "3.3.9"; + version = "3.5.2"; pyproject = true; src = fetchFromGitHub { owner = "dropbox"; repo = "stone"; - tag = "v${version}"; - hash = "sha256-3tUV2JrE3S2Tj/9aHvzfBTkIWUmWzkWNsVLr5yWRE/Q="; + tag = "v${finalAttrs.version}"; + hash = "sha256-05sAhyQx3IalHqNkSrJgRDJz85M331hF5Crc/gtP6jE="; }; postPatch = '' - substituteInPlace setup.py \ - --replace-fail "'pytest-runner == 5.3.2'," "" + # https://github.com/dropbox/stone/pull/373 pins setuptools-scm to <9, + # but that version is not in nixpkgs and it seems to work anyway? + substituteInPlace pyproject.toml \ + --replace-fail "setuptools-scm>=8,<9" "setuptools-scm" ''; - build-system = [ setuptools ]; + build-system = [ + setuptools + setuptools-scm + ]; dependencies = [ jinja2 - ply - six packaging + ply ]; nativeCheckInputs = [ @@ -47,9 +51,9 @@ buildPythonPackage rec { meta = { description = "Official API Spec Language for Dropbox API V2"; homepage = "https://github.com/dropbox/stone"; - changelog = "https://github.com/dropbox/stone/releases/tag/${src.tag}"; + changelog = "https://github.com/dropbox/stone/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ ]; mainProgram = "stone"; }; -} +})