1{ stdenv
2, lib
3, buildPythonPackage
4, fetchFromGitHub
5, fetchpatch
6, numpy
7, scipy
8, cython
9, networkx
10, joblib
11, pandas
12, nose
13, pyyaml
14}:
15
16
17buildPythonPackage rec {
18 pname = "pomegranate";
19 version = "0.14.8";
20
21 src = fetchFromGitHub {
22 repo = pname;
23 owner = "jmschrei";
24 # no tags for recent versions: https://github.com/jmschrei/pomegranate/issues/974
25 rev = "0652e955c400bc56df5661db3298a06854c7cce8";
26 sha256 = "16g49nl2bgnh6nh7bd21s393zbksdvgp9l13ww2diwhplj6hlly3";
27 };
28
29 propagatedBuildInputs = [ numpy scipy cython networkx joblib pyyaml ];
30
31 checkInputs = [ pandas nose ]; # as of 0.13.5, it depends explicitly on nose, rather than pytest.
32
33 meta = with lib; {
34 broken = stdenv.isDarwin;
35 description = "Probabilistic and graphical models for Python, implemented in cython for speed";
36 homepage = "https://github.com/jmschrei/pomegranate";
37 license = licenses.mit;
38 maintainers = with maintainers; [ rybern ];
39 };
40}