depot/third_party/nixpkgs/pkgs/development/python-modules/hdfs/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

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 ];
};
}