nixpkgs/pkgs/development/python-modules/datashape/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2017-10-29 14:48:07 +03:00
{ lib
, buildPythonPackage
2018-01-07 11:38:55 +03:00
, fetchFromGitHub
2017-10-29 14:48:07 +03:00
, pytest
, mock
, numpy
, multipledispatch
, dateutil
}:
2018-01-07 11:38:55 +03: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 14:48:07 +03:00
pname = "datashape";
2018-01-07 11:38:55 +03:00
version = "0.5.4";
2017-10-29 14:48:07 +03:00
2018-01-07 11:38:55 +03:00
src = fetcher {
2017-10-29 14:48:07 +03:00
inherit pname version;
2018-01-07 11:38:55 +03:00
sha256 = "0rhlj2kjj1vx5m73wnc5518rd6cs1zsbgpsvzk893n516k69shcf";
2017-10-29 14:48:07 +03:00
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ numpy multipledispatch dateutil ];
# Disable several tests
# https://github.com/blaze/datashape/issues/232
2017-10-29 14:48:07 +03:00
checkPhase = ''
py.test -k "not test_validate and not test_nested_iteratables and not test_validate_dicts and not test_tuples_can_be_records_too" datashape/tests
2017-10-29 14:48:07 +03:00
'';
meta = {
homepage = https://github.com/ContinuumIO/datashape;
description = "A data description language";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fridh ];
};
}