mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python310Packages.pymc3: 3.11.5 -> unstable-2022-05-23
This commit is contained in:
parent
97b7f3bc1a
commit
e55dfef920
1 changed files with 39 additions and 47 deletions
|
@ -1,72 +1,64 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, aeppl
|
||||||
, buildPythonPackage
|
, aesara
|
||||||
, pythonOlder
|
|
||||||
, theano-pymc
|
|
||||||
, pandas
|
|
||||||
, patsy
|
|
||||||
, joblib
|
|
||||||
, cachetools
|
|
||||||
, tqdm
|
|
||||||
, six
|
|
||||||
, h5py
|
|
||||||
, arviz
|
, arviz
|
||||||
, packaging
|
, buildPythonPackage
|
||||||
, pytest
|
, cachetools
|
||||||
, nose
|
, cloudpickle
|
||||||
, parameterized
|
|
||||||
, fastprogress
|
, fastprogress
|
||||||
|
, fetchFromGitHub
|
||||||
|
, numpy
|
||||||
|
, pythonOlder
|
||||||
|
, scipy
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
, dill
|
|
||||||
, semver
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pymc3";
|
pname = "pymc3";
|
||||||
version = "3.11.5";
|
version = "unstable-2022-05-23";
|
||||||
disabled = pythonOlder "3.5";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-M0HLvZYpCROLfV6+TtfP7in0Cy/nyt64iLOda7wXE4w=";
|
src = fetchFromGitHub {
|
||||||
|
owner = "pymc-devs";
|
||||||
|
repo = "pymc3";
|
||||||
|
rev = "b5a5b569779673914c9420c1cc0135b118505ff5";
|
||||||
|
hash = "sha256-vkIFwdjX2Rex8oqscVMP4xh0K4bjmN/RL7aQmOI//Dw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# No need for coverage stats in Nix builds
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py --replace ", 'pytest-cov'" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pandas
|
aeppl
|
||||||
patsy
|
aesara
|
||||||
joblib
|
|
||||||
tqdm
|
|
||||||
six
|
|
||||||
h5py
|
|
||||||
arviz
|
arviz
|
||||||
packaging
|
|
||||||
fastprogress
|
|
||||||
typing-extensions
|
|
||||||
dill
|
|
||||||
theano-pymc
|
|
||||||
cachetools
|
cachetools
|
||||||
semver
|
cloudpickle
|
||||||
|
fastprogress
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace ', "pytest-cov"' ""
|
||||||
|
substituteInPlace requirements.txt \
|
||||||
|
--replace "aesara==2.6.2" "aesara" \
|
||||||
|
--replace "aeppl==0.0.28" "aeppl"
|
||||||
|
'';
|
||||||
|
|
||||||
# The test suite is computationally intensive and test failures are not
|
# The test suite is computationally intensive and test failures are not
|
||||||
# indicative for package usability hence tests are disabled by default.
|
# indicative for package usability hence tests are disabled by default.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "pymc3" ];
|
|
||||||
|
|
||||||
# For some reason tests are run as a part of the *install* phase if enabled.
|
pythonImportsCheck = [
|
||||||
# Theano writes compiled code to ~/.theano hence we set $HOME.
|
"pymc"
|
||||||
preInstall = "export HOME=$(mktemp -d)";
|
];
|
||||||
postInstall = "rm -rf $HOME";
|
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
|
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
|
||||||
homepage = "https://github.com/pymc-devs/pymc3";
|
homepage = "https://github.com/pymc-devs/pymc3";
|
||||||
license = lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with lib.maintainers; [ nidabdella ];
|
maintainers = with maintainers; [ nidabdella ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue