nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 54 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 einops, 5 fetchFromGitHub, 6 flit-core, 7 numba, 8 numpy, 9 pytestCheckHook, 10 scipy, 11 xarray, 12}: 13 14buildPythonPackage rec { 15 pname = "xarray-einstats"; 16 version = "0.9.1"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "arviz-devs"; 21 repo = "xarray-einstats"; 22 tag = "v${version}"; 23 hash = "sha256-CgyMc2Yvut+1LfH9F2FAd62HuLu+58Xr50txbWj4mYU="; 24 }; 25 26 build-system = [ flit-core ]; 27 28 dependencies = [ 29 numpy 30 scipy 31 xarray 32 ]; 33 34 optional-dependencies = { 35 einops = [ einops ]; 36 numba = [ numba ]; 37 }; 38 39 nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies; 40 41 pythonImportsCheck = [ "xarray_einstats" ]; 42 43 disabledTests = [ 44 # TypeError 45 "test_pinv" 46 ]; 47 48 meta = { 49 description = "Stats, linear algebra and einops for xarray"; 50 homepage = "https://github.com/arviz-devs/xarray-einstats"; 51 license = lib.licenses.asl20; 52 maintainers = with lib.maintainers; [ fab ]; 53 }; 54}