depot/third_party/nixpkgs/pkgs/development/python-modules/snakebite/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
747 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
protobuf,
}:
buildPythonPackage rec {
pname = "snakebite";
version = "2.11.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-CFI4tJRMucZY7mLVeU3pNqw9DDN8UEssyGQkogWul4o=";
};
build-system = [ setuptools ];
dependencies = [ protobuf ];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'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 = [ ];
};
}