mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
57 lines
933 B
Nix
57 lines
933 B
Nix
{ lib
|
|
, aesara
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, numdifftools
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aeppl";
|
|
version = "0.0.50";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aesara-devs";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-cc41MspG2mXlNwLz7ViPPqXH/ayskVmms5SXqBo9g3Y=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|