2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
autograd,
|
|
|
|
scipy,
|
|
|
|
}:
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autograd-gamma";
|
|
|
|
version = "0.4.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CamDavidsonPilon";
|
|
|
|
repo = "autograd-gamma";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0v03gly5k3a1hzb54zpw6409m3riak49qd27hkq2f66ai42ivqz2";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
autograd
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "autograd_gamma" ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/CamDavidsonPilon/autograd-gamma";
|
|
|
|
description = "Autograd compatible approximations to the gamma family of functions";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ swflint ];
|
|
|
|
};
|
|
|
|
}
|