2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, arviz
|
|
|
|
, buildPythonPackage
|
|
|
|
, cachetools
|
|
|
|
, cloudpickle
|
|
|
|
, fastprogress
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
2023-02-02 18:25:31 +00:00
|
|
|
, pytensor
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymc";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "5.3.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pymc-devs";
|
2023-02-02 18:25:31 +00:00
|
|
|
repo = pname;
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-TtRIYgsPlire4li4/9Ls7Rh1SIkDGi5uCSN7huSrelA=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
arviz
|
|
|
|
cachetools
|
|
|
|
cloudpickle
|
|
|
|
fastprogress
|
|
|
|
numpy
|
2023-02-02 18:25:31 +00:00
|
|
|
pytensor
|
2022-06-16 17:23:12 +00:00
|
|
|
scipy
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace ', "pytest-cov"' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
# The test suite is computationally intensive and test failures are not
|
|
|
|
# indicative for package usability hence tests are disabled by default.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pymc"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
|
|
|
|
homepage = "https://github.com/pymc-devs/pymc3";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/pymc-devs/pymc/releases/tag/v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ nidabdella ];
|
|
|
|
};
|
|
|
|
}
|