linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / bayespy / default.nix
blob7768dd5a8d7c564b0c95adbbbf632addead741a5
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   numpy,
7   scipy,
8   h5py,
9   truncnorm,
10   pytestCheckHook,
13 buildPythonPackage rec {
14   pname = "bayespy";
15   version = "0.6.1";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "bayespy";
20     repo = "bayespy";
21     rev = "refs/tags/${version}";
22     hash = "sha256-X7CwJBrKHlU1jqMkt/7XEzaiwul1Yzkb/V64lXG4Aqo=";
23   };
25   postPatch = ''
26     substituteInPlace versioneer.py \
27       --replace-fail SafeConfigParser ConfigParser \
28       --replace-fail readfp read_file
29   '';
31   build-system = [ setuptools ];
33   dependencies = [
34     numpy
35     scipy
36     h5py
37     truncnorm
38   ];
40   nativeCheckInputs = [ pytestCheckHook ];
42   pythonImportsCheck = [ "bayespy" ];
44   meta = with lib; {
45     homepage = "http://www.bayespy.org";
46     description = "Variational Bayesian inference tools for Python";
47     license = licenses.mit;
48     maintainers = with maintainers; [ jluttine ];
49   };