depot/third_party/nixpkgs/pkgs/development/python-modules/srsly/default.nix
Default email a944afd061 Project import generated by Copybara.
GitOrigin-RevId: 2247d824fe07f16325596acc7faa286502faffd1
2020-11-21 20:51:51 +01:00

46 lines
856 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
, mock
, numpy
, pathlib
, pytest
, pytz
}:
buildPythonPackage rec {
pname = "srsly";
version = "2.3.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "f78eaef8d982e98921ce026d4205e652a9333137259f0b621f5c7b579e746e9d";
};
nativeBuildInputs = [ cython ];
checkInputs = [
mock
numpy
pytest
pytz
];
# TypeError: cannot serialize '_io.BufferedRandom' object
# Possibly because of sandbox restrictions.
doCheck = false;
pythonImportsCheck = [ "srsly" ];
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 ];
};
}