Files
nixpkgs/pkgs/development/python-modules/jsonschema-spec/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

67 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build
poetry-core,
# propagates
pathable,
pyyaml,
referencing,
requests,
# tests
pytestCheckHook,
pytest-cov-stub,
responses,
}:
buildPythonPackage rec {
pname = "jsonschema-spec";
version = "0.3.4";
pyproject = true;
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 ];
};
}