2017-11-01 18:37:31 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchPypi, numpy, scipy, cython, networkx, joblib, nose }:
|
2017-09-18 22:52:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pomegranate";
|
2017-11-01 18:37:31 +00:00
|
|
|
version = "0.8.1";
|
2017-09-18 22:52:25 +01:00
|
|
|
name = "${pname}-${version}";
|
2017-11-01 18:37:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "jmschrei";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "085nka5bh88bxbd5vl1azyv9cfpp6grz2ngclc85f9kgccac1djr";
|
2017-09-18 22:52:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy scipy cython networkx joblib ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Probabilistic and graphical models for Python, implemented in cython for speed";
|
|
|
|
homepage = https://github.com/jmschrei/pomegranate;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rybern ];
|
|
|
|
};
|
|
|
|
}
|