3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/srsly/default.nix
Daniël de Kok 7269a92820 python3Packages.srsly: 0.2.0 -> 1.0.1
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.
2020-01-13 00:36:56 -08:00

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 ];
};
}