01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
56 lines
927 B
Nix
56 lines
927 B
Nix
{ lib
|
|
, aesara
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, numdifftools
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aeppl";
|
|
version = "0.0.39";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aesara-devs";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ILyE3tqoDHNmrKpHPBUJ02jrGevsU5864rjhgmgjwvo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aesara
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
checkInputs = [
|
|
numdifftools
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d);
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"aeppl"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Compute issue
|
|
"test_initial_values"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for an Aesara-based PPL";
|
|
homepage = "https://github.com/aesara-devs/aeppl";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|