depot/third_party/nixpkgs/pkgs/development/python-modules/hdfs/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

36 lines
740 B
Nix

{ buildPythonPackage
, docopt
, fastavro
, fetchFromGitHub
, lib
, nose
, pytestCheckHook
, requests
, six
}:
buildPythonPackage rec {
pname = "hdfs";
# See https://github.com/mtth/hdfs/issues/176.
version = "2.5.8";
src = fetchFromGitHub {
owner = "mtth";
repo = pname;
rev = version;
hash = "sha256-94Q3IUoX1Cb+uRqvsfpVZJ1koJSx5cQ3/XpYJ0gkQNU=";
};
propagatedBuildInputs = [ docopt requests six ];
checkInputs = [ fastavro nose pytestCheckHook ];
pythonImportsCheck = [ "hdfs" ];
meta = with lib; {
description = "Python API and command line interface for HDFS";
homepage = "https://github.com/mtth/hdfs";
license = licenses.mit;
maintainers = with maintainers; [ samuela ];
};
}