Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, autograd, scipy }: 2 3buildPythonPackage rec { 4 pname = "autograd-gamma"; 5 version = "0.4.3"; 6 7 src = fetchFromGitHub { 8 owner = "CamDavidsonPilon"; 9 repo = "autograd-gamma"; 10 rev = "v${version}"; 11 sha256 = "0v03gly5k3a1hzb54zpw6409m3riak49qd27hkq2f66ai42ivqz2"; 12 }; 13 14 propagatedBuildInputs = [ 15 autograd 16 scipy 17 ]; 18 19 pythonImportsCheck = [ "autograd_gamma" ]; 20 21 checkInputs = [ pytestCheckHook ]; 22 23 meta = { 24 homepage = "https://github.com/CamDavidsonPilon/autograd-gamma"; 25 description = "Autograd compatible approximations to the gamma family of functions"; 26 license = lib.licenses.mit; 27 maintainers = with lib.maintainers; [ swflint ]; 28 }; 29}