diff options
Diffstat (limited to 'pkgs')
4 files changed, 111 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 ]; }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 33ae59a8f0cbb..78c579c3c6ba0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -643,6 +643,10 @@ in { asdf = callPackage ../development/python-modules/asdf { }; + asdf-standard = callPackage ../development/python-modules/asdf-standard { }; + + asdf-transform-schemas = callPackage ../development/python-modules/asdf-transform-schemas { }; + ase = callPackage ../development/python-modules/ase { }; asgi-csrf = callPackage ../development/python-modules/asgi-csrf { }; |