diff options
author | Gaetan Lepage <gaetan@glepage.com> | 2024-05-11 14:50:28 +0200 |
---|---|---|
committer | Gaetan Lepage <gaetan@glepage.com> | 2024-05-11 22:06:00 +0200 |
commit | bdf284928135fc1d9aedc2f2fb5f44afd043dbca (patch) | |
tree | 81db590cd19355113acfb1cb3ded4d46c30b055a /pkgs | |
parent | 1917011ee8cdad96cba724d6cced97a05177dc78 (diff) |
python311Packages.aeppl: fix build
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/aeppl/default.nix | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/aeppl/default.nix b/pkgs/development/python-modules/aeppl/default.nix index 1633be12bb97a..514e585d60338 100644 --- a/pkgs/development/python-modules/aeppl/default.nix +++ b/pkgs/development/python-modules/aeppl/default.nix @@ -1,29 +1,34 @@ { lib -, aesara , buildPythonPackage +, pythonOlder , fetchFromGitHub -, numdifftools +, setuptools +, aesara , numpy -, pytestCheckHook -, pythonOlder , scipy +, numdifftools +, pytestCheckHook }: buildPythonPackage rec { pname = "aeppl"; version = "0.1.5"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "aesara-devs"; - repo = pname; + repo = "aeppl"; rev = "refs/tags/v${version}"; hash = "sha256-mqBbXwWJwQA2wSHuEdBeXQMfTIcgwYEjpq8AVmOjmHM="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ aesara numpy scipy @@ -47,6 +52,14 @@ buildPythonPackage rec { "test_initial_values" ]; + pytestFlagsArray = [ + # `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. + # It will be removed for Python >= 3.12. For older Python versions it will remain present. + "-Wignore::DeprecationWarning" + # Blas cannot be found, allow fallback to the numpy slower implementation + "-Wignore::UserWarning" + ]; + meta = with lib; { description = "Library for an Aesara-based PPL"; homepage = "https://github.com/aesara-devs/aeppl"; |