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