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