3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/srsly/default.nix

42 lines
797 B
Nix
Raw Normal View History

2019-05-11 14:29:14 +01:00
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, mock
, numpy
, pathlib
, pytest
, pytz
}:
buildPythonPackage rec {
pname = "srsly";
version = "0.2.0";
2019-05-11 14:29:14 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "0gha1xfh64mapvgn0sghnjsvmjdrh5rywhs3j3bhkvwk42kf40ma";
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 ];
};
}