From fcfb2f3d4d4a76c8e86e39189427a6a7038d0138 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Tue, 10 Sep 2024 20:22:06 -0700 Subject: [PATCH] python312Packages.plotly: switch to fetchFromGitHub --- pkgs/development/python-modules/plotly/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix index c556d0a97c3c..5b65c4f4839b 100644 --- a/pkgs/development/python-modules/plotly/default.nix +++ b/pkgs/development/python-modules/plotly/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, setuptools, packaging, tenacity, @@ -13,12 +13,16 @@ buildPythonPackage rec { version = "5.24.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-6un09URIaCRCySwelxSOOtDFLwz4Ywbht22rokrdVUo="; + src = fetchFromGitHub { + owner = "plotly"; + repo = "plotly.py"; + rev = "refs/tags/v${version}"; + hash = "sha256-frSUybQxst4wG8g8U43Nay9dYCUXuR3dBealwPVyFdI="; }; postPatch = '' + cd packages/python/plotly + substituteInPlace pyproject.toml \ --replace-fail "\"jupyterlab~=3.0;python_version>='3.6'\"," "" '';