Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 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 = "1.0.1"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "0d49a90gsfyxwp8g14mvvw1kjm77qgx86zg4812kcmlz9ycb80hi"; 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}