From aa98290bd57b2b21891228cbffe069313bfc0c30 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 25 Aug 2026 09:40:02 +0200 Subject: [PATCH] python3Packages.editables: migrate to fetchFromGitHub Allows to run the tests if needed --- .../python-modules/editables/default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/editables/default.nix b/pkgs/development/python-modules/editables/default.nix index 65e52f8c46cc..1be90218b96e 100644 --- a/pkgs/development/python-modules/editables/default.nix +++ b/pkgs/development/python-modules/editables/default.nix @@ -1,26 +1,28 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, flit-core, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "editables"; version = "0.6"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-EWODSQI4HEYTeHlRxZFIAP3xVa4IhIo3O46lAGeAl3w="; + src = fetchFromGitHub { + owner = "pfmoore"; + repo = "editables"; + tag = finalAttrs.version; + hash = "sha256-U2IH1Bzu0k+hvNH6b3eT2W23BxfBeqOzNyp1Ig0bnOY="; }; build-system = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook ]; - # Tests not included in archive. + # Infinite recursion doCheck = false; pythonImportsCheck = [ "editables" ]; @@ -28,8 +30,8 @@ buildPythonPackage rec { meta = { description = "Editable installations"; homepage = "https://github.com/pfmoore/editables"; - changelog = "https://github.com/pfmoore/editables/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/pfmoore/editables/blob/${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ getchoo ]; }; -} +})