2019-05-11 14:29:14 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2020-06-08 19:57:36 +01:00
|
|
|
, cython
|
2019-05-11 14:29:14 +01:00
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, pathlib
|
|
|
|
, pytest
|
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srsly";
|
2020-07-06 21:58:57 +01:00
|
|
|
version = "2.2.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;
|
2020-07-06 21:58:57 +01:00
|
|
|
sha256 = "1h246zvh2wsqyjlw3a3bwmd1zwrkgpflk4z4i9k3sqp2j1jika54";
|
2019-05-11 14:29:14 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 19:57:36 +01:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
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" ];
|
|
|
|
|
2019-05-11 14:29:14 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|