mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
37 lines
746 B
Nix
37 lines
746 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 ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|