Merge pull request #309793 from TomaSajt/asdf

python312Packages.asdf: 2.13.0 -> 3.2.0, unbreak

authored by OTABI Tomoya and committed by GitHub 6f8b8fa6 b45d8ffb

+20 -45
+20 -45
pkgs/development/python-modules/asdf/default.nix
··· 1 1 { lib 2 2 , asdf-standard 3 3 , asdf-transform-schemas 4 - , astropy 4 + , attrs 5 5 , buildPythonPackage 6 6 , fetchFromGitHub 7 - , fetchpatch 8 - , importlib-resources 7 + , fsspec 8 + , importlib-metadata 9 9 , jmespath 10 - , jsonschema 11 10 , lz4 12 11 , numpy 13 12 , packaging 14 - , pytest-astropy 13 + , psutil 14 + , pytest-remotedata 15 15 , pytestCheckHook 16 16 , pythonOlder 17 17 , pyyaml 18 18 , semantic-version 19 + , setuptools 19 20 , setuptools-scm 20 21 }: 21 22 22 23 buildPythonPackage rec { 23 24 pname = "asdf"; 24 - version = "2.13.0"; 25 - format = "pyproject"; 25 + version = "3.2.0"; 26 + pyproject = true; 26 27 27 - disabled = pythonOlder "3.8"; 28 + disabled = pythonOlder "3.9"; 28 29 29 30 src = fetchFromGitHub { 30 - owner = "asdf-format/"; 31 - repo = pname; 31 + owner = "asdf-format"; 32 + repo = "asdf"; 32 33 rev = "refs/tags/${version}"; 33 - hash = "sha256-u8e7ot5NDRqQFH0eLVnGinBQmQD73BlR5K9HVjA7SIg="; 34 + hash = "sha256-r+cEv6g7fq3I/h2mlszzJRQcazy7qP9pg0hfYG/Sa9E="; 34 35 }; 35 36 36 - patches = [ 37 - # Fix default validation, https://github.com/asdf-format/asdf/pull/1203 38 - (fetchpatch { 39 - name = "default-validation.patch"; 40 - url = "https://github.com/asdf-format/asdf/commit/6f79f620b4632e20178d9bd53528702605d3e976.patch"; 41 - hash = "sha256-h/dYhXRCf5oIIC+u6+8C91mJnmEzuNmlEzqc0UEhLy0="; 42 - excludes = [ 43 - "CHANGES.rst" 44 - ]; 45 - }) 46 - ]; 47 - 48 - postPatch = '' 49 - # https://github.com/asdf-format/asdf/pull/1203 50 - substituteInPlace pyproject.toml \ 51 - --replace "'jsonschema >=4.0.1, <4.10.0'," "'jsonschema >=4.0.1'," 52 - ''; 53 - 54 - nativeBuildInputs = [ 37 + build-system = [ 38 + setuptools 55 39 setuptools-scm 56 40 ]; 57 41 58 - propagatedBuildInputs = [ 42 + dependencies = [ 59 43 asdf-standard 60 44 asdf-transform-schemas 45 + importlib-metadata 61 46 jmespath 62 - jsonschema 63 47 numpy 64 48 packaging 65 49 pyyaml 66 50 semantic-version 67 - ] ++ lib.optionals (pythonOlder "3.9") [ 68 - importlib-resources 51 + attrs 69 52 ]; 70 53 71 54 nativeCheckInputs = [ 72 - astropy 55 + fsspec 73 56 lz4 74 - pytest-astropy 57 + psutil 58 + pytest-remotedata 75 59 pytestCheckHook 76 60 ]; 77 61 78 - preCheck = '' 79 - export PY_IGNORE_IMPORTMISMATCH=1 80 - ''; 81 62 82 63 pythonImportsCheck = [ 83 64 "asdf" 84 65 ]; 85 66 86 - disabledTests = [ 87 - "config.rst" 88 - ]; 89 - 90 67 meta = with lib; { 91 68 description = "Python tools to handle ASDF files"; 92 69 homepage = "https://github.com/asdf-format/asdf"; 93 70 license = licenses.bsd3; 94 71 maintainers = with maintainers; [ ]; 95 - # Many tests fail, according to Hydra 96 - broken = true; 97 72 }; 98 73 }