1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 numpy,
11 joblib,
12 networkx,
13 scipy,
14 pyyaml,
15 cython,
16}:
17
18buildPythonPackage rec {
19 pname = "pomegranate";
20 version = "0.14.8";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 repo = pname;
25 owner = "jmschrei";
26 # no tags for recent versions: https://github.com/jmschrei/pomegranate/issues/974
27 rev = "refs/tags/v${version}";
28 hash = "sha256-PoDAtNm/snq4isotkoCTVYUuwr9AKKwiXIojUFMH/YE=";
29 };
30
31 nativeBuildInputs = [ setuptools ];
32
33 propagatedBuildInputs = [
34 numpy
35 joblib
36 networkx
37 scipy
38 pyyaml
39 cython
40 ];
41
42 # https://github.com/etal/cnvkit/issues/815
43 passthru.skipBulkUpdate = true;
44
45 meta = with lib; {
46 description = "Probabilistic and graphical models for Python, implemented in cython for speed";
47 homepage = "https://github.com/jmschrei/pomegranate";
48 license = licenses.mit;
49 maintainers = with maintainers; [ rybern ];
50 };
51}