From 99d785c2f4816d18e5f934a17b9906eec173e75a Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 2 Jul 2026 14:06:11 +0700 Subject: [PATCH] python3Packages.sharedmem: modernize --- .../python-modules/sharedmem/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/sharedmem/default.nix b/pkgs/development/python-modules/sharedmem/default.nix index 8a108b52da76..277b0c47a0ca 100644 --- a/pkgs/development/python-modules/sharedmem/default.nix +++ b/pkgs/development/python-modules/sharedmem/default.nix @@ -6,25 +6,28 @@ numpy, }: -buildPythonPackage rec { - +buildPythonPackage (finalAttrs: { pname = "sharedmem"; version = "0.3.8"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; - sha256 = "c654a6bee2e2f35c82e6cc8b6c262fcabd378f5ba11ac9ef71530f8dabb8e2f7"; + inherit (finalAttrs) pname version; + hash = "sha256-xlSmvuLi81yC5syLbCYvyr03j1uhGsnvcVMPjau44vc="; }; build-system = [ setuptools ]; dependencies = [ numpy ]; + pythonImportsCheck = [ "sharedmem" ]; + meta = { homepage = "http://rainwoodman.github.io/sharedmem/"; description = "Easier parallel programming on shared memory computers"; maintainers = with lib.maintainers; [ edwtjo ]; license = lib.licenses.gpl3; }; -} +})