Merge pull request #294574 from GaetanLepage/pytensor

python311Packages.pytensor: 2.18.6 -> 2.20.0
This commit is contained in:
Peder Bergebakken Sundt 2024-04-30 16:26:43 +02:00 committed by GitHub
commit f1b03bc771
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 18 deletions

View file

@ -3,46 +3,48 @@
, buildPythonPackage , buildPythonPackage
, cachetools , cachetools
, cloudpickle , cloudpickle
, fastprogress
, fetchFromGitHub , fetchFromGitHub
, numpy , numpy
, pandas
, pytensor , pytensor
, pythonOlder , pythonOlder
, rich
, scipy , scipy
, typing-extensions
, setuptools , setuptools
, typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pymc"; pname = "pymc";
version = "5.10.4"; version = "5.13.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pymc-devs"; owner = "pymc-devs";
repo = "pymc"; repo = "pymc";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-tiOXbryY2TmeBVrG5cIMeDJ4alolBQ5LosdfH3tpVOA="; hash = "sha256-SSAn7nbKhXGeEvASKQITUs3+ix3j37u9JTkNiG+1tZ0=";
}; };
build-system = [
setuptools
];
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace-fail ', "pytest-cov"' "" --replace-fail ', "pytest-cov"' ""
''; '';
propagatedBuildInputs = [ build-system = [
setuptools
];
dependencies = [
arviz arviz
cachetools cachetools
cloudpickle cloudpickle
fastprogress
numpy numpy
pandas
pytensor pytensor
rich
scipy scipy
typing-extensions typing-extensions
]; ];

View file

@ -19,21 +19,20 @@
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, tensorflow-probability , tensorflow-probability
, stdenv
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytensor"; pname = "pytensor";
version = "2.18.6"; version = "2.20.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pymc-devs"; owner = "pymc-devs";
repo = "pytensor"; repo = "pytensor";
rev = "refs/tags/rel-${version}"; rev = "refs/tags/rel-${version}";
hash = "sha256-SMh4wVZwmc87ztFn2OOI234VP3JzmxVMBkn7lYwVu6M="; hash = "sha256-bvkOMer+zYSsiU4a147eUEZjjUeTVpb9f/hepMZZ3sE=";
}; };
postPatch = '' postPatch = ''
@ -41,12 +40,12 @@ buildPythonPackage rec {
--replace "versioneer[toml]==0.28" "versioneer[toml]" --replace "versioneer[toml]==0.28" "versioneer[toml]"
''; '';
nativeBuildInputs = [ build-system = [
cython cython
versioneer versioneer
]; ];
propagatedBuildInputs = [ dependencies = [
cons cons
etuples etuples
filelock filelock
@ -98,6 +97,5 @@ buildPythonPackage rec {
changelog = "https://github.com/pymc-devs/pytensor/releases"; changelog = "https://github.com/pymc-devs/pytensor/releases";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ferrine ]; maintainers = with maintainers; [ bcdarwin ferrine ];
broken = (stdenv.isLinux && stdenv.isAarch64);
}; };
} }