2017-10-29 11:48:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2018-01-07 08:38:55 +00:00
|
|
|
, fetchFromGitHub
|
2017-10-29 11:48:07 +00:00
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, multipledispatch
|
|
|
|
, dateutil
|
|
|
|
}:
|
|
|
|
|
2018-01-07 08:38:55 +00:00
|
|
|
let
|
|
|
|
# Fetcher function looks similar to fetchPypi.
|
|
|
|
# Allows for easier overriding, without having to know
|
|
|
|
# how the source is actually fetched.
|
|
|
|
fetcher = {pname, version, sha256}: fetchFromGitHub {
|
|
|
|
owner = "blaze";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
in buildPythonPackage rec {
|
2017-10-29 11:48:07 +00:00
|
|
|
pname = "datashape";
|
2018-01-07 08:38:55 +00:00
|
|
|
version = "0.5.4";
|
2017-10-29 11:48:07 +00:00
|
|
|
|
2018-01-07 08:38:55 +00:00
|
|
|
src = fetcher {
|
2017-10-29 11:48:07 +00:00
|
|
|
inherit pname version;
|
2018-01-07 08:38:55 +00:00
|
|
|
sha256 = "0rhlj2kjj1vx5m73wnc5518rd6cs1zsbgpsvzk893n516k69shcf";
|
2017-10-29 11:48:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [ numpy multipledispatch dateutil ];
|
|
|
|
|
2018-03-10 11:29:43 +00:00
|
|
|
# Disable several tests
|
|
|
|
# https://github.com/blaze/datashape/issues/232
|
2017-10-29 11:48:07 +00:00
|
|
|
checkPhase = ''
|
2019-07-14 22:30:08 +01:00
|
|
|
pytest --ignore datashape/tests/test_str.py \
|
|
|
|
--ignore datashape/tests/test_user.py
|
2017-10-29 11:48:07 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-18 09:51:24 +01:00
|
|
|
# https://github.com/blaze/datashape/issues/238
|
|
|
|
PYTEST_ADDOPTS = "-k 'not test_record and not test_tuple'";
|
|
|
|
|
2017-10-29 11:48:07 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ContinuumIO/datashape";
|
2017-10-29 11:48:07 +00:00
|
|
|
description = "A data description language";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2019-07-14 22:30:08 +01:00
|
|
|
}
|