nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 dvc,
5 fetchFromGitHub,
6 fsspec,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "dvc-hdfs";
13 version = "3.0.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "iterative";
18 repo = "dvc-hdfs";
19 tag = version;
20 hash = "sha256-Bo8+El5GC7iyT8SxaJquWFG29BOeilmEMDtTG+RkDGI=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 ];
27
28 propagatedBuildInputs = [
29 dvc
30 fsspec
31 ]
32 ++ fsspec.optional-dependencies.arrow;
33
34 # Circular dependency with dvc
35 doCheck = false;
36
37 pythonImportsCheck = [ "dvc_hdfs" ];
38
39 meta = {
40 description = "HDFS/WebHDFS plugin for dvc";
41 homepage = "https://github.com/iterative/dvc-hdfs";
42 changelog = "https://github.com/iterative/dvc-hdfs/releases/tag/${version}";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [ fab ];
45 };
46}