mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
7269a92820
srsly 2.0.0 is also released. But since spaCy/textacy are the only dependencies and spaCy requires < 1.1.0, it probably makes more sense to bump this to 1.0.1 for the time being. And additional argument in favor of 1.0.1 is that 2.0.0 drops support for Python 3.5.
42 lines
797 B
Nix
42 lines
797 B
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, mock
|
|
, numpy
|
|
, pathlib
|
|
, pytest
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "srsly";
|
|
version = "1.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0d49a90gsfyxwp8g14mvvw1kjm77qgx86zg4812kcmlz9ycb80hi";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|