2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-05-11 14:29:14 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2020-06-08 19:57:36 +01:00
|
|
|
, cython
|
2021-02-01 13:43:58 +00:00
|
|
|
, catalogue
|
2019-05-11 14:29:14 +01:00
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, pathlib
|
|
|
|
, pytest
|
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srsly";
|
2021-02-01 13:43:58 +00:00
|
|
|
version = "2.4.0";
|
2019-05-11 14:29:14 +01:00
|
|
|
|
2020-06-20 10:08:21 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2019-05-11 14:29:14 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-01 13:43:58 +00:00
|
|
|
sha256 = "e29730be53015970e4a59050e8e9f9be44d762108a617df56c9dfc981b515ab7";
|
2019-05-11 14:29:14 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 19:57:36 +01:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
2021-02-01 13:43:58 +00:00
|
|
|
propagatedBuildInputs = [ catalogue ];
|
|
|
|
|
2019-05-11 14:29:14 +01:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
numpy
|
|
|
|
pytest
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
# TypeError: cannot serialize '_io.BufferedRandom' object
|
|
|
|
# Possibly because of sandbox restrictions.
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-20 10:08:21 +01:00
|
|
|
pythonImportsCheck = [ "srsly" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-11 14:29:14 +01:00
|
|
|
description = "Modern high-performance serialization utilities for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/explosion/srsly";
|
2019-05-11 14:29:14 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|