From b47d4d83f5933d32a033ab2e4d55186f10a4d3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 20 Sep 2024 15:14:33 -0700 Subject: [PATCH] python312Packages.multipart: 0.2.5 -> 1.1.0 Diff: https://github.com/defnull/multipart/compare/v0.2.5...v1.1.0 Changelog: https://github.com/defnull/multipart/blob/refs/tags/v1.1.0/README.rst#changelog --- .../python-modules/multipart/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/multipart/default.nix b/pkgs/development/python-modules/multipart/default.nix index 312699ecda41..46ccd9bfa8f3 100644 --- a/pkgs/development/python-modules/multipart/default.nix +++ b/pkgs/development/python-modules/multipart/default.nix @@ -1,28 +1,31 @@ { lib, buildPythonPackage, - fetchPypi, - setuptools, + fetchFromGitHub, + flit-core, pytestCheckHook, }: buildPythonPackage rec { pname = "multipart"; - version = "0.2.5"; + version = "1.1.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-+piDjUDJZ7sZWJYmoPuKXEDEId2i/r4bA1H89ibiRlE="; + src = fetchFromGitHub { + owner = "defnull"; + repo = "multipart"; + rev = "refs/tags/v${version}"; + hash = "sha256-RaHAV1LapYf0zRW7cxxbe7ysAJ5xB6EvF1bsCbCWS0U="; }; - build-system = [ setuptools ]; + build-system = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "multipart" ]; meta = { + changelog = "https://github.com/defnull/multipart/blob/${src.rev}/README.rst#changelog"; description = "Parser for multipart/form-data"; homepage = "https://github.com/defnull/multipart"; license = lib.licenses.mit;