1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 06:19:10 +03:00
nixpkgs/pkgs/development/python-modules/pymc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.4 KiB
Nix
Raw Normal View History

2018-04-28 21:06:12 +02:00
{ lib
, aeppl
, aesara
, arviz
2018-04-28 21:06:12 +02:00
, buildPythonPackage
, cachetools
, cloudpickle
2020-10-03 23:50:03 +01:00
, fastprogress
, fetchFromGitHub
, numpy
, pythonOlder
, pythonRelaxDepsHook
, scipy
2020-10-03 23:50:03 +01:00
, typing-extensions
2018-04-28 21:06:12 +02:00
}:
buildPythonPackage rec {
pname = "pymc";
2022-12-30 20:13:36 +01:00
version = "5.0.1";
format = "setuptools";
2018-04-28 21:06:12 +02:00
disabled = pythonOlder "3.7";
2018-04-28 21:06:12 +02:00
src = fetchFromGitHub {
owner = "pymc-devs";
repo = "pymc";
2022-06-23 05:57:06 +00:00
rev = "refs/tags/v${version}";
2022-12-30 20:13:36 +01:00
hash = "sha256-uWvzWbZyRRE8L9X9+azmN+1JYahwwNSYCk2fQ/C8Yi0=";
};
2018-04-28 21:06:12 +02:00
nativeBuildInputs = [
pythonRelaxDepsHook
];
2018-04-28 21:06:12 +02:00
propagatedBuildInputs = [
aeppl
aesara
arviz
cachetools
cloudpickle
2020-10-03 23:50:03 +01:00
fastprogress
numpy
scipy
2020-10-03 23:50:03 +01:00
typing-extensions
2018-04-28 21:06:12 +02:00
];
postPatch = ''
substituteInPlace setup.py \
--replace ', "pytest-cov"' ""
'';
pythonRelaxDeps = [
"aesara"
"aeppl"
];
2018-04-28 21:06:12 +02:00
# 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"
];
2018-04-28 21:06:12 +02:00
meta = with lib; {
2018-04-28 21:06:12 +02:00
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
homepage = "https://github.com/pymc-devs/pymc3";
changelog = "https://github.com/pymc-devs/pymc/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ nidabdella ];
2018-04-28 21:06:12 +02:00
};
}