mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 04:34:52 +00:00
41 lines
835 B
Nix
41 lines
835 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
autograd,
|
|
scipy,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "autograd-gamma";
|
|
version = "0.4.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CamDavidsonPilon";
|
|
repo = "autograd-gamma";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-4uMdBYnKGCfwhEc0nMhUMY+aADH8flLWh0GNWTx9A2w=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
};
|
|
})
|