1{
2 buildPythonPackage,
3 docopt,
4 fastavro,
5 fetchFromGitHub,
6 lib,
7 nose,
8 pytestCheckHook,
9 requests,
10 six,
11}:
12
13buildPythonPackage rec {
14 pname = "hdfs";
15 version = "2.7.3";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "mtth";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-Pm2E8hB0wbu7npi/sLt9D8jQsH69qNOHLji9CYqST/8=";
23 };
24
25 propagatedBuildInputs = [
26 docopt
27 requests
28 six
29 ];
30
31 nativeCheckInputs = [
32 fastavro
33 nose
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "hdfs" ];
38
39 meta = with lib; {
40 description = "Python API and command line interface for HDFS";
41 homepage = "https://github.com/mtth/hdfs";
42 changelog = "https://github.com/mtth/hdfs/releases/tag/v${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ samuela ];
45 };
46}