Files
nixpkgs/pkgs/development/python-modules/pomegranate/default.nix
T
Martin Weinelt 65738f8959 python311Packages.pomegranate: update propagated dependencies
Checking runtime dependencies for pomegranate-1.0.0-py3-none-any.whl
  - scikit-learn not installed
  - torch not installed
  - apricot-select not installed
2023-12-20 20:10:34 +01:00

60 lines
1.0 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# dependencies
, apricot-select
, networkx
, numpy
, scikit-learn
, scipy
, torch
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pomegranate";
version = "1.0.0";
format = "pyproject";
src = fetchFromGitHub {
repo = pname;
owner = "jmschrei";
# no tags for recent versions: https://github.com/jmschrei/pomegranate/issues/974
rev = "refs/tags/v${version}";
sha256 = "sha256-EnxKlRRfsOIDLAhYOq7bUSbI/NvPoSyYCZ9D5VCXFGQ=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
apricot-select
networkx
numpy
scikit-learn
scipy
torch
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
broken = stdenv.isDarwin;
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 ];
};
}