2019-05-11 14:29:14 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, pathlib
|
|
|
|
, pytest
|
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srsly";
|
2019-06-18 03:02:33 +01:00
|
|
|
version = "0.0.7";
|
2019-05-11 14:29:14 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-18 03:02:33 +01:00
|
|
|
sha256 = "1v9nn17q2lshnvnc8ff6nk53rggz2hgnmx4fj4czfr40125r98pk";
|
2019-05-11 14:29:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional (pythonOlder "3.4") pathlib;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
numpy
|
|
|
|
pytest
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
# TypeError: cannot serialize '_io.BufferedRandom' object
|
|
|
|
# Possibly because of sandbox restrictions.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Modern high-performance serialization utilities for Python";
|
|
|
|
homepage = https://github.com/explosion/srsly;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|