depot/third_party/nixpkgs/pkgs/development/python-modules/snakebite/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

38 lines
700 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, protobuf
}:
buildPythonPackage rec {
pname = "snakebite";
version = "2.11.0";
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";
homepage = "https://github.com/spotify/snakebite";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc ];
};
}