1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, numpy
6, pandas
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "xarray";
12 version = "0.10.8";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "6a1f2c5dc5f639f8343f70ed08d0afbb477a3867298ef38f0d9bf4aafa0fb750";
17 };
18
19 checkInputs = [ pytest ];
20 propagatedBuildInputs = [numpy pandas];
21
22 checkPhase = ''
23 py.test $out/${python.sitePackages}
24 '';
25
26 # There always seem to be broken tests...
27 doCheck = false;
28
29 meta = {
30 description = "N-D labeled arrays and datasets in Python";
31 homepage = https://github.com/pydata/xarray;
32 license = lib.licenses.asl20;
33 maintainers = with lib.maintainers; [ fridh ];
34 };
35}