1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 protobuf, 6}: 7 8buildPythonPackage rec { 9 pname = "snakebite"; 10 version = "2.11.0"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "085238b4944cb9c658ee62d5794de936ac3d0c337c504b2cc86424a205ae978a"; 16 }; 17 18 propagatedBuildInputs = [ protobuf ]; 19 20 postPatch = '' 21 substituteInPlace setup.py \ 22 --replace "'argparse'" "" 23 ''; 24 25 # Tests require hadoop hdfs 26 doCheck = false; 27 28 pythonImportsCheck = [ "snakebite" ]; 29 30 meta = with lib; { 31 description = "Pure Python HDFS client"; 32 mainProgram = "snakebite"; 33 homepage = "https://github.com/spotify/snakebite"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ ]; 36 }; 37}