depot/third_party/nixpkgs/pkgs/development/python-modules/pymc/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

67 lines
1.3 KiB
Nix

{ lib
, arviz
, buildPythonPackage
, cachetools
, cloudpickle
, fetchFromGitHub
, numpy
, pandas
, pytensor
, pythonOlder
, rich
, scipy
, setuptools
, typing-extensions
}:
buildPythonPackage rec {
pname = "pymc";
version = "5.15.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "pymc-devs";
repo = "pymc";
rev = "refs/tags/v${version}";
hash = "sha256-KJXQz7LES3AqLkq5FPnaECraYSM4vfuDyfRJSclz1RQ=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail ', "pytest-cov"' ""
'';
build-system = [
setuptools
];
dependencies = [
arviz
cachetools
cloudpickle
numpy
pandas
pytensor
rich
scipy
typing-extensions
];
# 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/pymc";
changelog = "https://github.com/pymc-devs/pymc/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ nidabdella ferrine ];
};
}