From 263a39fd48ef2582b4086fa8d0026a5e027e3005 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 2 Nov 2025 00:43:51 +0000 Subject: [PATCH] python3Packages.cloudpathlib: 0.22.0 -> 0.23.0 --- .../python-modules/cloudpathlib/default.nix | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/cloudpathlib/default.nix b/pkgs/development/python-modules/cloudpathlib/default.nix index f8f00d04695f..e73068f90685 100644 --- a/pkgs/development/python-modules/cloudpathlib/default.nix +++ b/pkgs/development/python-modules/cloudpathlib/default.nix @@ -1,15 +1,23 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, + + # build-system flit-core, + + # dependencies + pythonOlder, typing-extensions, - azure-identity, + + # optional-dependencies azure-storage-blob, azure-storage-file-datalake, google-cloud-storage, boto3, + + # tests + azure-identity, psutil, pydantic, pytestCheckHook, @@ -23,27 +31,28 @@ buildPythonPackage rec { pname = "cloudpathlib"; - version = "0.22.0"; + version = "0.23.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "drivendataorg"; repo = "cloudpathlib"; tag = "v${version}"; - hash = "sha256-IeNYfYDvCALvK0CV4J6434E3lSz+/JvolQzQXZ8NizQ="; + hash = "sha256-lRZYWGX3Yqs1GTIL3ugOiu+K9RF6vJdbKP/SZAStHLc="; }; - postPatch = '' + postPatch = # missing pytest-reportlog test dependency - substituteInPlace pyproject.toml \ - --replace-fail "--report-log reportlog.jsonl" "" - ''; + '' + substituteInPlace pyproject.toml \ + --replace-fail "--report-log reportlog.jsonl" "" + ''; build-system = [ flit-core ]; - dependencies = lib.optional (pythonOlder "3.11") typing-extensions; + dependencies = lib.optionals (pythonOlder "3.11") [ + typing-extensions + ]; optional-dependencies = { all = optional-dependencies.azure ++ optional-dependencies.gs ++ optional-dependencies.s3; @@ -71,10 +80,13 @@ buildPythonPackage rec { ] ++ optional-dependencies.all; - meta = with lib; { + __darwinAllowLocalNetworking = true; + + meta = { description = "Python pathlib-style classes for cloud storage services such as Amazon S3, Azure Blob Storage, and Google Cloud Storage"; homepage = "https://github.com/drivendataorg/cloudpathlib"; - license = licenses.mit; - maintainers = with maintainers; [ GaetanLepage ]; + changelog = "https://github.com/drivendataorg/cloudpathlib/blob/${src.tag}/HISTORY.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; }; }