From ae3b36d8053bbb581cd5220c3f3440cbb532ab5e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Apr 2022 22:42:04 +0200 Subject: [PATCH] python3Package.asdf-transform-schemas: init at 0.2.2 --- .../asdf-transform-schemas/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/asdf-transform-schemas/default.nix 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 000000000000..8333e25f01aa --- /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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e101349d8c97..20a85ea1f1d1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -645,6 +645,8 @@ in { 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 { };