2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2022-03-10 19:12:11 +00:00
|
|
|
, theano-pymc
|
2020-04-24 23:36:52 +00:00
|
|
|
, pandas
|
|
|
|
, patsy
|
|
|
|
, joblib
|
2022-03-10 19:12:11 +00:00
|
|
|
, cachetools
|
2020-04-24 23:36:52 +00:00
|
|
|
, tqdm
|
|
|
|
, six
|
|
|
|
, h5py
|
|
|
|
, arviz
|
|
|
|
, packaging
|
|
|
|
, pytest
|
|
|
|
, nose
|
|
|
|
, parameterized
|
2020-10-19 00:13:06 +00:00
|
|
|
, fastprogress
|
|
|
|
, typing-extensions
|
2022-03-10 19:12:11 +00:00
|
|
|
, dill
|
|
|
|
, semver
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymc3";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "3.11.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-M0HLvZYpCROLfV6+TtfP7in0Cy/nyt64iLOda7wXE4w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# No need for coverage stats in Nix builds
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace ", 'pytest-cov'" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pandas
|
|
|
|
patsy
|
|
|
|
joblib
|
|
|
|
tqdm
|
|
|
|
six
|
|
|
|
h5py
|
|
|
|
arviz
|
|
|
|
packaging
|
2020-10-19 00:13:06 +00:00
|
|
|
fastprogress
|
|
|
|
typing-extensions
|
2022-03-10 19:12:11 +00:00
|
|
|
dill
|
|
|
|
theano-pymc
|
|
|
|
cachetools
|
|
|
|
semver
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# The test suite is computationally intensive and test failures are not
|
|
|
|
# indicative for package usability hence tests are disabled by default.
|
|
|
|
doCheck = false;
|
2020-10-19 00:13:06 +00:00
|
|
|
pythonImportsCheck = [ "pymc3" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# For some reason tests are run as a part of the *install* phase if enabled.
|
|
|
|
# Theano writes compiled code to ~/.theano hence we set $HOME.
|
|
|
|
preInstall = "export HOME=$(mktemp -d)";
|
|
|
|
postInstall = "rm -rf $HOME";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
|
|
|
|
homepage = "https://github.com/pymc-devs/pymc3";
|
|
|
|
license = lib.licenses.asl20;
|
2022-03-10 19:12:11 +00:00
|
|
|
maintainers = with lib.maintainers; [ nidabdella ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|