2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2020-06-15 15:56:04 +00:00
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, pathlib
|
|
|
|
, pytest
|
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srsly";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "2.3.2";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-21 19:51:51 +00:00
|
|
|
sha256 = "f78eaef8d982e98921ce026d4205e652a9333137259f0b621f5c7b579e746e9d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
numpy
|
|
|
|
pytest
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
# TypeError: cannot serialize '_io.BufferedRandom' object
|
|
|
|
# Possibly because of sandbox restrictions.
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
pythonImportsCheck = [ "srsly" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Modern high-performance serialization utilities for Python";
|
|
|
|
homepage = "https://github.com/explosion/srsly";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|