depot/third_party/nixpkgs/pkgs/development/python-modules/aeppl/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

57 lines
1,013 B
Nix

{ lib
, aesara
, buildPythonPackage
, fetchFromGitHub
, numdifftools
, numpy
, pytestCheckHook
, pythonOlder
, scipy
}:
buildPythonPackage rec {
pname = "aeppl";
version = "0.1.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aesara-devs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-mqBbXwWJwQA2wSHuEdBeXQMfTIcgwYEjpq8AVmOjmHM=";
};
propagatedBuildInputs = [
aesara
numpy
scipy
];
nativeCheckInputs = [
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";
changelog = "https://github.com/aesara-devs/aeppl/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}