2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
numpy,
|
|
|
|
joblib,
|
|
|
|
networkx,
|
|
|
|
scipy,
|
|
|
|
pyyaml,
|
|
|
|
cython,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pomegranate";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.14.8";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "jmschrei";
|
2022-06-16 17:23:12 +00:00
|
|
|
# no tags for recent versions: https://github.com/jmschrei/pomegranate/issues/974
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-PoDAtNm/snq4isotkoCTVYUuwr9AKKwiXIojUFMH/YE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2024-01-25 14:12:00 +00:00
|
|
|
joblib
|
|
|
|
networkx
|
2024-01-13 08:15:51 +00:00
|
|
|
scipy
|
2024-01-25 14:12:00 +00:00
|
|
|
pyyaml
|
|
|
|
cython
|
2024-01-13 08:15:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
# https://github.com/etal/cnvkit/issues/815
|
|
|
|
passthru.skipBulkUpdate = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|