From f2ea04cffb4ef561edc847576421597396cc3798 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 02:22:38 +0700 Subject: [PATCH] python3Packages.betamax-serializers: modernize --- .../python-modules/betamax-serializers/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/betamax-serializers/default.nix b/pkgs/development/python-modules/betamax-serializers/default.nix index 2a56ddf99fd5..1935df0d69c8 100644 --- a/pkgs/development/python-modules/betamax-serializers/default.nix +++ b/pkgs/development/python-modules/betamax-serializers/default.nix @@ -7,14 +7,16 @@ pyyaml, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "betamax-serializers"; version = "0.2.1"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; - sha256 = "0ja9isbjmzzhxdj69s0kdsvw8nkp073w6an6a4liy5vk3fdl2p1l"; + inherit (finalAttrs) pname version; + hash = "sha256-NFxBmxtzFx8pUcYqw8cBd1rEt24T6GRk6/D/KpeOSUk="; }; build-system = [ setuptools ]; @@ -24,9 +26,11 @@ buildPythonPackage rec { pyyaml ]; + pythonImportsCheck = [ "betamax_serializers" ]; + meta = { homepage = "https://gitlab.com/betamax/serializers"; description = "Set of third-party serializers for Betamax"; license = lib.licenses.asl20; }; -} +})