From 331d61b9b992eea66ecfcda82bdbddb07bc0e000 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 26 Mar 2026 21:39:13 +0000 Subject: [PATCH] python3Packages.mhcgnomes: 1.8.6 -> 3.15.1 Diff: https://github.com/pirl-unc/mhcgnomes/compare/c7e779b60e35a031f6e0f0ea6ae70e8a8e7671c6...c7e779b60e35a031f6e0f0ea6ae70e8a8e7671c6 --- .../python-modules/mhcgnomes/default.nix | 38 +++++++++++++------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/mhcgnomes/default.nix b/pkgs/development/python-modules/mhcgnomes/default.nix index b5a1660e5774..f963f94a3b56 100644 --- a/pkgs/development/python-modules/mhcgnomes/default.nix +++ b/pkgs/development/python-modules/mhcgnomes/default.nix @@ -1,38 +1,52 @@ { + lib, buildPythonPackage, fetchFromGitHub, - lib, + + # build-system + setuptools, + + # dependencies pandas, pyyaml, - serializable, + numpy, + + # tests + pytestCheckHook, }: -buildPythonPackage { +buildPythonPackage (finalAttrs: { pname = "mhcgnomes"; - version = "1.8.6"; - format = "setuptools"; + version = "3.15.1"; + pyproject = true; src = fetchFromGitHub { owner = "pirl-unc"; repo = "mhcgnomes"; - # See https://github.com/pirl-unc/mhcgnomes/issues/20. As of 2023-07-13, - # they do no have version tags. - rev = "c7e779b60e35a031f6e0f0ea6ae70e8a8e7671c6"; - hash = "sha256-KKiBlnFlavRnaQnOpAzG0dyxmFB+zF9L6t/H05LkFZE="; + tag = "v${finalAttrs.version}"; + hash = "sha256-tcJfGIJsbCdN+U/+2zsYBhKEJNy55QMf7eu9Z4nuXlk="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ pandas pyyaml - serializable + numpy ]; pythonImportsCheck = [ "mhcgnomes" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + meta = { description = "Parsing MHC nomenclature in the wild"; homepage = "https://github.com/pirl-unc/mhcgnomes"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ samuela ]; }; -} +})