nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 fqdn,
7 jsonschema,
8 rfc3987,
9 strict-rfc3339,
10 fedora-messaging,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "weblate-schemas";
16 version = "2025.6";
17
18 pyproject = true;
19
20 src = fetchPypi {
21 pname = "weblate_schemas";
22 inherit version;
23 hash = "sha256-Kxu+8CiJ343PmCdY5rSbTqsWmVMLnz9inAH726g5TQQ=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 fqdn
30 jsonschema
31 rfc3987
32 strict-rfc3339
33 ];
34
35 nativeCheckInputs = [
36 fedora-messaging
37 pytestCheckHook
38 ]
39 ++ jsonschema.optional-dependencies.format;
40
41 pythonImportsCheck = [ "weblate_schemas" ];
42
43 meta = {
44 description = "Schemas used by Weblate";
45 homepage = "https://github.com/WeblateOrg/weblate_schemas";
46 changelog = "https://github.com/WeblateOrg/weblate_schemas/blob/${version}/CHANGES.rst";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ erictapen ];
49 };
50
51}