https://github.com/p1c2u/jsonschema-spec/releases/tag/0.1.5 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.1.6 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.0 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.1 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.2 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.3 Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
|
|
# build
|
|
, poetry-core
|
|
|
|
# propagates
|
|
, pathable
|
|
, pyyaml
|
|
, referencing
|
|
, requests
|
|
|
|
# tests
|
|
, pytestCheckHook
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonschema-spec";
|
|
version = "0.2.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "p1c2u";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Sa97DwPnGMLmT00hVdkoGO7C0vrvtwxvUvv9lq4nCY4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/^--cov/d" pyproject.toml
|
|
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'referencing = ">=0.28.0,<0.30.0"' 'referencing = ">=0.28.0"'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pathable
|
|
pyyaml
|
|
referencing
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.asl20;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|