1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 07:12:34 +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.

72 lines
1.3 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-01 16:12:30 +00:00
version = "4.4.0";
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-01 16:12:30 +00:00
hash = "sha256-ZBltvvKXfqHYLeYOEYFK8kQc0wHM9+UHLRJFMSYX4Ow=";
};
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";
license = licenses.asl20;
maintainers = with maintainers; [ nidabdella ];
2018-04-28 21:06:12 +02:00
};
}