summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mhcgnomes/default.nix
blob: b5a1660e57740a6a25d827970905dde3252686bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pandas,
  pyyaml,
  serializable,
}:

buildPythonPackage {
  pname = "mhcgnomes";
  version = "1.8.6";
  format = "setuptools";

  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=";
  };

  propagatedBuildInputs = [
    pandas
    pyyaml
    serializable
  ];

  pythonImportsCheck = [ "mhcgnomes" ];

  meta = {
    description = "Parsing MHC nomenclature in the wild";
    homepage = "https://github.com/pirl-unc/mhcgnomes";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ samuela ];
  };
}