nixpkgs/pkgs/development/python-modules/snakebite/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

41 lines
747 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 = with maintainers; [ ];
};
}