nixpkgs/pkgs/development/python-modules/srsly/default.nix

46 lines
840 B
Nix
Raw Normal View History

{ lib
2019-05-11 14:29:14 +01:00
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
2019-05-11 14:29:14 +01:00
, mock
, numpy
, pathlib
, pytest
, pytz
}:
buildPythonPackage rec {
pname = "srsly";
2020-11-12 10:52:14 +00:00
version = "2.3.2";
2019-05-11 14:29:14 +01:00
disabled = pythonOlder "3.6";
2019-05-11 14:29:14 +01:00
src = fetchPypi {
inherit pname version;
2020-11-12 10:52:14 +00:00
sha256 = "f78eaef8d982e98921ce026d4205e652a9333137259f0b621f5c7b579e746e9d";
2019-05-11 14:29:14 +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;
pythonImportsCheck = [ "srsly" ];
meta = with lib; {
2019-05-11 14:29:14 +01:00
description = "Modern high-performance serialization utilities for Python";
homepage = "https://github.com/explosion/srsly";
2019-05-11 14:29:14 +01:00
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}