1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, pythonOlder
6, cython
7, mock
8, numpy
9, pathlib
10, pytest
11, pytz
12}:
13
14buildPythonPackage rec {
15 pname = "srsly";
16 version = "2.2.0";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "1h246zvh2wsqyjlw3a3bwmd1zwrkgpflk4z4i9k3sqp2j1jika54";
23 };
24
25 nativeBuildInputs = [ cython ];
26
27 checkInputs = [
28 mock
29 numpy
30 pytest
31 pytz
32 ];
33
34 # TypeError: cannot serialize '_io.BufferedRandom' object
35 # Possibly because of sandbox restrictions.
36 doCheck = false;
37
38 pythonImportsCheck = [ "srsly" ];
39
40 meta = with stdenv.lib; {
41 description = "Modern high-performance serialization utilities for Python";
42 homepage = "https://github.com/explosion/srsly";
43 license = licenses.mit;
44 maintainers = with maintainers; [ danieldk ];
45 };
46}