1{
2 lib,
3 asdf-standard,
4 asdf-transform-schemas,
5 attrs,
6 buildPythonPackage,
7 fetchFromGitHub,
8 fsspec,
9 importlib-metadata,
10 jmespath,
11 lz4,
12 numpy,
13 packaging,
14 psutil,
15 pytest-remotedata,
16 pytestCheckHook,
17 pythonOlder,
18 pyyaml,
19 semantic-version,
20 setuptools,
21 setuptools-scm,
22}:
23
24buildPythonPackage rec {
25 pname = "asdf";
26 version = "3.2.0";
27 pyproject = true;
28
29 disabled = pythonOlder "3.9";
30
31 src = fetchFromGitHub {
32 owner = "asdf-format";
33 repo = "asdf";
34 rev = "refs/tags/${version}";
35 hash = "sha256-r+cEv6g7fq3I/h2mlszzJRQcazy7qP9pg0hfYG/Sa9E=";
36 };
37
38 build-system = [
39 setuptools
40 setuptools-scm
41 ];
42
43 dependencies = [
44 asdf-standard
45 asdf-transform-schemas
46 importlib-metadata
47 jmespath
48 numpy
49 packaging
50 pyyaml
51 semantic-version
52 attrs
53 ];
54
55 nativeCheckInputs = [
56 fsspec
57 lz4
58 psutil
59 pytest-remotedata
60 pytestCheckHook
61 ];
62
63 pythonImportsCheck = [ "asdf" ];
64
65 meta = with lib; {
66 description = "Python tools to handle ASDF files";
67 homepage = "https://github.com/asdf-format/asdf";
68 license = licenses.bsd3;
69 maintainers = with maintainers; [ ];
70 };
71}