2019-07-22 14:40:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, tox
|
|
|
|
, virtualenv
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snakebite";
|
|
|
|
version = "2.11.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "085238b4944cb9c658ee62d5794de936ac3d0c337c504b2cc86424a205ae978a";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
tox
|
|
|
|
virtualenv
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'argparse'" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
# tests require hadoop hdfs
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python HDFS client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/spotify/snakebite";
|
2019-07-22 14:40:06 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|