depot/third_party/nixpkgs/pkgs/development/python-modules/bayespy/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
945 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
scipy,
h5py,
truncnorm,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bayespy";
version = "0.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bayespy";
repo = "bayespy";
rev = "refs/tags/${version}";
hash = "sha256-X7CwJBrKHlU1jqMkt/7XEzaiwul1Yzkb/V64lXG4Aqo=";
};
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 = with lib; {
homepage = "http://www.bayespy.org";
description = "Variational Bayesian inference tools for Python";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}