at master 930 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 numpy, 7 scipy, 8 h5py, 9 truncnorm, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "bayespy"; 15 version = "0.6.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "bayespy"; 20 repo = "bayespy"; 21 tag = version; 22 hash = "sha256-X7CwJBrKHlU1jqMkt/7XEzaiwul1Yzkb/V64lXG4Aqo="; 23 }; 24 25 postPatch = '' 26 substituteInPlace versioneer.py \ 27 --replace-fail SafeConfigParser ConfigParser \ 28 --replace-fail readfp read_file 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 numpy 35 scipy 36 h5py 37 truncnorm 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "bayespy" ]; 43 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 }; 50}