1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4, pandas
5, pyyaml
6, serializable
7}:
8
9buildPythonPackage rec {
10 pname = "mhcgnomes";
11 version = "1.8.6";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "pirl-unc";
16 repo = pname;
17 # See https://github.com/pirl-unc/mhcgnomes/issues/20. As of 2023-07-13,
18 # they do no have version tags.
19 rev = "c7e779b60e35a031f6e0f0ea6ae70e8a8e7671c6";
20 hash = "sha256-KKiBlnFlavRnaQnOpAzG0dyxmFB+zF9L6t/H05LkFZE=";
21 };
22
23 propagatedBuildInputs = [ pandas pyyaml serializable ];
24
25 pythonImportsCheck = [ "mhcgnomes" ];
26
27 meta = with lib; {
28 description = "Parsing MHC nomenclature in the wild";
29 homepage = "https://github.com/pirl-unc/mhcgnomes";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ samuela ];
32 };
33}