2021-12-06 16:07:01 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, docopt
|
|
|
|
, fastavro
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hdfs";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.7.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mtth";
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-KXJDQEc4+T9r8sB41SOgcx8Gth3qAOZceoOpsLbJ+ak=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ docopt requests six ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ fastavro nose 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 ];
|
|
|
|
};
|
|
|
|
}
|