Commit 331d61b9 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent 79016ca5
Loading
Loading
Loading
Loading
+26 −12
Original line number Diff line number Diff line
{
  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 ];
  };
}
})