diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-04-09 23:14:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 23:14:47 +0200 |
commit | 756618cae571dbd031acc22021a429f234f93033 (patch) | |
tree | 52e33e4b9952054e1122c5a1b53104119cde953b /pkgs/development | |
parent | aba0dc0ff395f3135b418c7352f6d7ebda3e4d48 (diff) | |
parent | 9dba703fbd4c74f5712cb4a6114b51b079fe75c6 (diff) |
Merge pull request #168048 from fabaff/asdf-fix
python3Packages.asdf: 2.10.1 -> 2.11.0
Diffstat (limited to 'pkgs/development')
3 files changed, 107 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/asdf-standard/default.nix b/pkgs/development/python-modules/asdf-standard/default.nix new file mode 100644 index 0000000000000..3a9b6efb704cd --- /dev/null +++ b/pkgs/development/python-modules/asdf-standard/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchPypi +, importlib-resources +, pythonOlder +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "asdf-standard"; + version = "1.0.1"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "asdf_standard"; + inherit version; + hash = "sha256-HK8GceEm9K7DETreG1BjhYNpp2klXPu7vNLWfazFtZI="; + }; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ + importlib-resources + ]; + + # Circular dependency on asdf + doCheck = false; + + pythonImportsCheck = [ + "asdf_standard" + ]; + + meta = with lib; { + description = "Standards document describing ASDF"; + homepage = "https://github.com/asdf-format/asdf-standard"; + license = licenses.bsd3; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/asdf-transform-schemas/default.nix b/pkgs/development/python-modules/asdf-transform-schemas/default.nix new file mode 100644 index 0000000000000..8333e25f01aa7 --- /dev/null +++ b/pkgs/development/python-modules/asdf-transform-schemas/default.nix @@ -0,0 +1,46 @@ +{ lib +, asdf-standard +, buildPythonPackage +, fetchPypi +, importlib-resources +, pythonOlder +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "asdf-transform-schemas"; + version = "0.2.2"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "asdf_transform_schemas"; + inherit version; + hash = "sha256-9xqTCe0+vQmxk3roV8lM7JKIeHBEDrPphou77XJlaxU="; + }; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + asdf-standard + ] ++ lib.optionals (pythonOlder "3.9") [ + importlib-resources + ]; + + # Circular dependency on asdf + doCheck = false; + + pythonImportsCheck = [ + "asdf_transform_schemas" + ]; + + meta = with lib; { + description = "ASDF schemas for validating transform tags"; + homepage = "https://github.com/asdf-format/asdf-transform-schemas"; + license = licenses.bsd3; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/asdf/default.nix b/pkgs/development/python-modules/asdf/default.nix index 122020c271f9f..5087884074d82 100644 --- a/pkgs/development/python-modules/asdf/default.nix +++ b/pkgs/development/python-modules/asdf/default.nix @@ -1,10 +1,13 @@ { lib +, asdf-standard +, asdf-transform-schemas , astropy , buildPythonPackage , fetchPypi , importlib-resources , jmespath , jsonschema +, lz4 , numpy , packaging , pytest-astropy @@ -17,18 +20,23 @@ buildPythonPackage rec { pname = "asdf"; - version = "2.10.1"; - disabled = pythonOlder "3.6"; + version = "2.11.0"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; - sha256 = "sha256-9+Vp8ps3I5Oe/sgWTrLtcnS91ICwsoPXWDPw9Z0QhAk="; + hash = "sha256-FEWXGSkneduhO9+YlzrZvpJHUsI7TeagVLwBdMEIRvw="; }; - nativeBuildInputs = [ setuptools-scm ]; + nativeBuildInputs = [ + setuptools-scm + ]; propagatedBuildInputs = [ + asdf-standard + asdf-transform-schemas jmespath jsonschema numpy @@ -40,8 +48,9 @@ buildPythonPackage rec { ]; checkInputs = [ - pytest-astropy astropy + lz4 + pytest-astropy pytestCheckHook ]; @@ -49,11 +58,13 @@ buildPythonPackage rec { export PY_IGNORE_IMPORTMISMATCH=1 ''; - pythonImportsCheck = [ "asdf" ]; + pythonImportsCheck = [ + "asdf" + ]; meta = with lib; { description = "Python tools to handle ASDF files"; - homepage = "https://github.com/spacetelescope/asdf"; + homepage = "https://github.com/asdf-format/asdf"; license = licenses.bsd3; maintainers = with maintainers; [ costrouc ]; }; |