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