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 ]; }; -} +})