Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch2, setuptools, numpy, scipy, h5py, truncnorm, pytestCheckHook,}:
buildPythonPackage rec { pname = "bayespy"; version = "0.6.1"; pyproject = true;
src = fetchFromGitHub { owner = "bayespy"; repo = "bayespy"; tag = version; hash = "sha256-kx87XY4GCL1PQIeZyovEbrPyCC/EVA6Hdvt+3P/D6VI="; };
patches = [ (fetchpatch2 { url = "https://salsa.debian.org/python-team/packages/python-bayespy/-/raw/071f54815608b31aebac8f8e83bc532b2c632a48/debian/patches/numpy2.4-compat.patch"; hash = "sha256-Tk3z94+vbGaSIqGFFRQZz0pcXI1Fzcbnva3oWnv502U="; }) ];
postPatch = '' substituteInPlace versioneer.py \ --replace-fail SafeConfigParser ConfigParser \ --replace-fail readfp read_file '';
build-system = [ setuptools ];
dependencies = [ numpy scipy h5py truncnorm ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "bayespy" ];
meta = { homepage = "http://www.bayespy.org"; description = "Variational Bayesian inference tools for Python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jluttine ]; };}