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