diff options
author | Ilya Kolpakov <ilya.kolpakov@gmail.com> | 2018-04-28 21:06:12 +0200 |
---|---|---|
committer | Ilya Kolpakov <ilya.kolpakov@gmail.com> | 2018-04-28 22:57:57 +0200 |
commit | f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5 (patch) | |
tree | 361a7ef5852264a45341b53136573ebf7ec910ba /pkgs/development/python-modules/pymc3 | |
parent | 4797fe8da41c4fa4291ce4e1ac3434ea4e04fb1e (diff) | |
download | nixlib-f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5.tar nixlib-f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5.tar.gz nixlib-f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5.tar.bz2 nixlib-f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5.tar.lz nixlib-f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5.tar.xz nixlib-f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5.tar.zst nixlib-f2adf2059a8cce0e7619f65ba1f2d8f38f5efad5.zip |
pythonPackages.pymc3: init at 3.2
Diffstat (limited to 'pkgs/development/python-modules/pymc3')
-rw-r--r-- | pkgs/development/python-modules/pymc3/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pymc3/default.nix b/pkgs/development/python-modules/pymc3/default.nix new file mode 100644 index 000000000000..308958abb6d0 --- /dev/null +++ b/pkgs/development/python-modules/pymc3/default.nix @@ -0,0 +1,64 @@ +{ lib +, fetchPypi +, buildPythonPackage +, pythonOlder +, Theano +, pandas +, patsy +, joblib +, tqdm +, six +, h5py +, pytest +, nose +, parameterized +, matplotlib +}: + +buildPythonPackage rec { + pname = "pymc3"; + version = "3.2"; + disabled = pythonOlder "3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0hpzhkpv7sbwkcva7x914yvzcf1d1a952ynbcx6mvlgv5lqghc39"; + }; + + # No need for coverage stats in Nix builds + postPatch = '' + substituteInPlace setup.py --replace ", 'pytest-cov'" "" + ''; + + propagatedBuildInputs = [ + Theano + pandas + patsy + joblib + tqdm + six + h5py + ]; + + checkInputs = [ + pytest + nose + parameterized + ]; + + # The test suite is computationally intensive and test failures are not + # indicative for package usability hence tests are disabled by default. + doCheck = false; + + # 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 = http://github.com/pymc-devs/pymc3; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ ilya-kolpakov ]; + }; +} |