about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/snakebite/default.nix
blob: a5a1addf81b0a879eb1ea4f5b9bcc5a1a9a61766 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchPypi
, protobuf
}:

buildPythonPackage rec {
  pname = "snakebite";
  version = "2.11.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "085238b4944cb9c658ee62d5794de936ac3d0c337c504b2cc86424a205ae978a";
  };

  propagatedBuildInputs = [
    protobuf
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "'argparse'" ""
  '';

  # Tests require hadoop hdfs
  doCheck = false;

  pythonImportsCheck = [
    "snakebite"
  ];

  meta = with lib; {
    description = "Pure Python HDFS client";
    mainProgram = "snakebite";
    homepage = "https://github.com/spotify/snakebite";
    license = licenses.asl20;
    maintainers = with maintainers; [ ];
  };
}