5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
36 lines
786 B
Nix
36 lines
786 B
Nix
{ buildPythonPackage
|
|
, docopt
|
|
, fastavro
|
|
, fetchFromGitHub
|
|
, lib
|
|
, nose
|
|
, pytestCheckHook
|
|
, requests
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hdfs";
|
|
version = "2.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mtth";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-KXJDQEc4+T9r8sB41SOgcx8Gth3qAOZceoOpsLbJ+ak=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ docopt requests six ];
|
|
|
|
nativeCheckInputs = [ fastavro nose pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "hdfs" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API and command line interface for HDFS";
|
|
homepage = "https://github.com/mtth/hdfs";
|
|
changelog = "https://github.com/mtth/hdfs/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ samuela ];
|
|
};
|
|
}
|