From 8459d1ee700ca14b6adfaf0d5de514a3b3881181 Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 15 Jun 2026 21:47:50 +0700 Subject: [PATCH 1/3] python3Packages.xstatic-jquery-file-upload: migrate to pyproject --- .../python-modules/xstatic-jquery-file-upload/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix index 9c98ffcb4e2c..87a9fff9e16c 100644 --- a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix @@ -2,13 +2,14 @@ buildPythonPackage, lib, fetchPypi, + setuptools, xstatic-jquery, }: buildPythonPackage rec { pname = "xstatic-jquery-file-upload"; version = "10.31.0.1"; - format = "setuptools"; + pyproject = true; src = fetchPypi { pname = "XStatic-jQuery-File-Upload"; @@ -16,10 +17,12 @@ buildPythonPackage rec { sha256 = "7d716f26aca14732c35c54f0ba6d38187600ab472fc98a91d972d12c5a70db27"; }; + build-system = [ setuptools ]; + # no tests implemented doCheck = false; - propagatedBuildInputs = [ xstatic-jquery ]; + dependencies = [ xstatic-jquery ]; meta = { homepage = "https://plugins.jquery.com/project/jQuery-File-Upload"; From a6533c1309dd99cf2099ed10b9d00e4fb3ddc50a Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 15 Jun 2026 21:49:14 +0700 Subject: [PATCH 2/3] python3Packages.xstatic-jquery-file-upload: modernize --- .../xstatic-jquery-file-upload/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix index 87a9fff9e16c..bb81bf3d75c0 100644 --- a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix @@ -6,15 +6,17 @@ xstatic-jquery, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "xstatic-jquery-file-upload"; version = "10.31.0.1"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { pname = "XStatic-jQuery-File-Upload"; - inherit version; - sha256 = "7d716f26aca14732c35c54f0ba6d38187600ab472fc98a91d972d12c5a70db27"; + inherit (finalAttrs) version; + hash = "sha256-fXFvJqyhRzLDXFTwum04GHYAq0cvyYqR2XLRLFpw2yc="; }; build-system = [ setuptools ]; @@ -24,10 +26,12 @@ buildPythonPackage rec { dependencies = [ xstatic-jquery ]; + pythonImportsCheck = [ "xstatic.pkg.jquery_file_upload" ]; + meta = { homepage = "https://plugins.jquery.com/project/jQuery-File-Upload"; description = "jquery-file-upload packaged static files for python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ makefu ]; }; -} +}) From 41b27c4169b381ee5ab5b38a3bb9579b24688a15 Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 15 Jun 2026 21:50:47 +0700 Subject: [PATCH 3/3] python3Packages.xstatic-jquery-file-upload: unbreak meta.homepage --- .../python-modules/xstatic-jquery-file-upload/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix index bb81bf3d75c0..467cf4247db4 100644 --- a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix @@ -29,7 +29,7 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "xstatic.pkg.jquery_file_upload" ]; meta = { - homepage = "https://plugins.jquery.com/project/jQuery-File-Upload"; + homepage = "https://github.com/blueimp/jQuery-File-Upload"; description = "jquery-file-upload packaged static files for python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ makefu ];