Files
nixpkgs/pkgs/development/python-modules/jsonschema-spec/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

70 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build
poetry-core,
# propagates
pathable,
pyyaml,
referencing,
requests,
# tests
pytestCheckHook,
pytest-cov-stub,
responses,
}:
buildPythonPackage rec {
pname = "jsonschema-spec";
version = "0.3.4";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "p1c2u";
repo = "jsonschema-spec";
tag = version;
hash = "sha256-rCepDnVAOEsokKjWCuqDYbGIq6/wn4rsQRx5dXTUsYo=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'referencing = ">=0.28.0,<0.30.0"' 'referencing = ">=0.28.0"'
'';
nativeBuildInputs = [
poetry-core
];
pythonRelaxDeps = [ "referencing" ];
propagatedBuildInputs = [
pathable
pyyaml
referencing
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
responses
];
passthru.skipBulkUpdate = true; # newer versions under the jsonschema-path name
meta = {
changelog = "https://github.com/p1c2u/jsonschema-spec/releases/tag/${version}";
description = "JSONSchema Spec with object-oriented paths";
homepage = "https://github.com/p1c2u/jsonschema-spec";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
}