depot/third_party/nixpkgs/pkgs/development/python-modules/snakebite/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

37 lines
723 B
Nix

{
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 = [ ];
};
}