Gaetan Lepage
2026-03-26 21:44:06 +00:00
parent 79016ca515
commit 331d61b9b9
@@ -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 ];
};
}
})