mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
a53e95fccc
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-pymc3/versions
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, Theano
|
|
, pandas
|
|
, patsy
|
|
, joblib
|
|
, tqdm
|
|
, six
|
|
, h5py
|
|
, pytest
|
|
, nose
|
|
, parameterized
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymc3";
|
|
version = "3.7";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0ijna2ghvniryllr56qr4vi4k9q58mq21yx36nj5kg2j17f7rkbr";
|
|
};
|
|
|
|
# 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 = https://github.com/pymc-devs/pymc3;
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ ilya-kolpakov ];
|
|
};
|
|
}
|