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