Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 41 lines 797 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, pythonOlder 6, mock 7, numpy 8, pathlib 9, pytest 10, pytz 11}: 12 13buildPythonPackage rec { 14 pname = "srsly"; 15 version = "0.0.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "1v9nn17q2lshnvnc8ff6nk53rggz2hgnmx4fj4czfr40125r98pk"; 20 }; 21 22 propagatedBuildInputs = lib.optional (pythonOlder "3.4") pathlib; 23 24 checkInputs = [ 25 mock 26 numpy 27 pytest 28 pytz 29 ]; 30 31 # TypeError: cannot serialize '_io.BufferedRandom' object 32 # Possibly because of sandbox restrictions. 33 doCheck = false; 34 35 meta = with stdenv.lib; { 36 description = "Modern high-performance serialization utilities for Python"; 37 homepage = https://github.com/explosion/srsly; 38 license = licenses.mit; 39 maintainers = with maintainers; [ danieldk ]; 40 }; 41}