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

47 lines
856 B
Nix
Raw Normal View History

2019-05-11 14:29:14 +01:00
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
2019-05-11 14:29:14 +01:00
, mock
, numpy
, pathlib
, pytest
, pytz
}:
buildPythonPackage rec {
pname = "srsly";
2020-06-06 07:47:32 +01:00
version = "2.0.1";
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-06-06 07:47:32 +01:00
sha256 = "fa3c7375be8fe75f23c27feafbfb5f738d55ffdbf02964c6896fb7684f519a52";
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" ];
2019-05-11 14:29:14 +01:00
meta = with stdenv.lib; {
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 ];
};
}