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

47 lines
856 B
Nix
Raw Normal View History

2019-05-11 06:29:14 -07:00
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
2019-05-11 06:29:14 -07:00
, mock
, numpy
, pathlib
, pytest
, pytz
}:
buildPythonPackage rec {
pname = "srsly";
version = "2.3.1";
2019-05-11 06:29:14 -07:00
disabled = pythonOlder "3.6";
2019-05-11 06:29:14 -07:00
src = fetchPypi {
inherit pname version;
sha256 = "3dcce93c69ff18e8a8d7decfdfdf8e1fd44c4446cdee8d0e5d545d6b172dc377";
2019-05-11 06:29:14 -07:00
};
nativeBuildInputs = [ cython ];
2019-05-11 06:29:14 -07:00
checkInputs = [
mock
numpy
pytest
pytz
];
# TypeError: cannot serialize '_io.BufferedRandom' object
# Possibly because of sandbox restrictions.
doCheck = false;
pythonImportsCheck = [ "srsly" ];
2019-05-11 06:29:14 -07:00
meta = with stdenv.lib; {
description = "Modern high-performance serialization utilities for Python";
homepage = "https://github.com/explosion/srsly";
2019-05-11 06:29:14 -07:00
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}