Files
nixpkgs/pkgs/development/python-modules/mhcgnomes/default.nix
2026-04-19 17:35:56 +00:00

53 lines
853 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
pandas,
pyyaml,
numpy,
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "mhcgnomes";
version = "3.32.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pirl-unc";
repo = "mhcgnomes";
tag = "v${finalAttrs.version}";
hash = "sha256-6YYmIXuZXCaozkrVhqlxSQ9TG7vthHcMhVl0QpWChZE=";
};
build-system = [
setuptools
];
dependencies = [
pandas
pyyaml
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 ];
};
})