depot/third_party/nixpkgs/pkgs/development/python-modules/aeppl/default.nix

58 lines
1,013 B
Nix
Raw Normal View History

{ lib
, aesara
, buildPythonPackage
, fetchFromGitHub
, numdifftools
, numpy
, pytestCheckHook
, pythonOlder
, scipy
}:
buildPythonPackage rec {
pname = "aeppl";
version = "0.1.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aesara-devs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-IVABUFGOLHexiiQrtXWertddYqGfFEqqWG9+ca10p+U=";
};
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 ];
};
}