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