diff --git a/pkgs/development/python-modules/weblate-schemas/default.nix b/pkgs/development/python-modules/weblate-schemas/default.nix new file mode 100644 index 000000000000..728612b8a103 --- /dev/null +++ b/pkgs/development/python-modules/weblate-schemas/default.nix @@ -0,0 +1,40 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + fqdn, + jsonschema, + rfc3987, + strict-rfc3339, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "weblate-schemas"; + version = "2024.1"; + + src = fetchPypi { + pname = "weblate_schemas"; + inherit version; + hash = "sha256-nYPLD3VDO1Z97HI79J6Yjj3bWp1xKB79FWPCW146iz4="; + }; + + dependencies = [ + fqdn + jsonschema + rfc3987 + strict-rfc3339 + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "weblate_schemas" ]; + + meta = with lib; { + description = "Schemas used by Weblate"; + homepage = "https://github.com/WeblateOrg/weblate_schemas"; + license = licenses.mit; + maintainers = with maintainers; [ erictapen ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 59528b789409..eb361c65b45a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17381,6 +17381,8 @@ self: super: with self; { weblate-language-data = callPackage ../development/python-modules/weblate-language-data { }; + weblate-schemas = callPackage ../development/python-modules/weblate-schemas { }; + webob = callPackage ../development/python-modules/webob { }; webrtc-noise-gain = callPackage ../development/python-modules/webrtc-noise-gain { };