Files
nixpkgs/pkgs/development/python-modules/jsonschema-specifications/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
995 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-vcs,
hatchling,
importlib-resources,
pytestCheckHook,
pythonOlder,
referencing,
}:
buildPythonPackage rec {
pname = "jsonschema-specifications";
version = "2025.4.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "jsonschema_specifications";
inherit version;
hash = "sha256-YwFZyfTb6hYaaiIFwwEcxPGP84Gxif/0i7Obm/Jq5gg=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
referencing
]
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jsonschema_specifications" ];
meta = {
description = "Support files exposing JSON from the JSON Schema specifications";
homepage = "https://github.com/python-jsonschema/jsonschema-specifications";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}