2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
docopt,
|
|
|
|
fastavro,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
six,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hdfs";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2.7.3";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mtth";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "hdfs";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-Pm2E8hB0wbu7npi/sLt9D8jQsH69qNOHLji9CYqST/8=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
|
|
|
docopt
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
fastavro
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "hdfs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API and command line interface for HDFS";
|
|
|
|
homepage = "https://github.com/mtth/hdfs";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/mtth/hdfs/releases/tag/v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "hdfscli";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|