Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, isPy27, pytest, mock }: 2 3buildPythonPackage rec { 4 pname = "cloudpickle"; 5 version = "1.5.0"; 6 disabled = isPy27; # abandoned upstream 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "820c9245cebdec7257211cbe88745101d5d6a042bca11336d78ebd4897ddbc82"; 11 }; 12 13 buildInputs = [ pytest mock ]; 14 15 # See README for tests invocation 16 checkPhase = '' 17 PYTHONPATH=$PYTHONPATH:'.:tests' py.test 18 ''; 19 20 # TypeError: cannot serialize '_io.FileIO' object 21 doCheck = false; 22 23 meta = with stdenv.lib; { 24 description = "Extended pickling support for Python objects"; 25 homepage = "https://github.com/cloudpipe/cloudpickle"; 26 license = with licenses; [ bsd3 ]; 27 }; 28}