21 buildPythonPackage rec {
24 disabled = pythonOlder "3.5";
27 inherit pname version;
28 sha256 = "abe046f5a5d0e5baee80b7c4bc0a4c218f61b517b62d77be4f89cf4784c27d78";
31 # No need for coverage stats in Nix builds
33 substituteInPlace setup.py --replace ", 'pytest-cov'" ""
36 propagatedBuildInputs = [
56 # The test suite is computationally intensive and test failures are not
57 # indicative for package usability hence tests are disabled by default.
59 pythonImportsCheck = [ "pymc3" ];
61 # For some reason tests are run as a part of the *install* phase if enabled.
62 # Theano writes compiled code to ~/.theano hence we set $HOME.
63 preInstall = "export HOME=$(mktemp -d)";
64 postInstall = "rm -rf $HOME";
67 description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
68 homepage = "https://github.com/pymc-devs/pymc3";
69 license = lib.licenses.asl20;
70 maintainers = with lib.maintainers; [ ilya-kolpakov ];