mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 00:54:40 +00:00
python311Packages.jschon: init at 0.11.1
This commit is contained in:
parent
c94b214471
commit
7bb193f85e
75
pkgs/development/python-modules/jschon/default.nix
Normal file
75
pkgs/development/python-modules/jschon/default.nix
Normal file
@ -0,0 +1,75 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, wheel
|
||||
, rfc3986
|
||||
, pytestCheckHook
|
||||
, hypothesis
|
||||
, requests
|
||||
, pytest-httpserver
|
||||
, pytest-xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jschon";
|
||||
version = "0.11.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "marksparkza";
|
||||
repo = "jschon";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-uOvEIEUEILsoLuV5U9AJCQAlT4iHQhsnSt65gfCiW0k=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
rfc3986
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jschon"
|
||||
"jschon.catalog"
|
||||
"jschon.vocabulary"
|
||||
"jschon.exc"
|
||||
"jschon.exceptions"
|
||||
"jschon.formats"
|
||||
"jschon.json"
|
||||
"jschon.jsonpatch"
|
||||
"jschon.jsonpointer"
|
||||
"jschon.jsonschema"
|
||||
"jschon.output"
|
||||
"jschon.uri"
|
||||
"jschon.utils"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
hypothesis
|
||||
requests
|
||||
pytest-httpserver
|
||||
#pytest-benchmark # not needed for distribution
|
||||
pytest-xdist # not used upstream, but massive speedup
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/test_benchmarks.py"
|
||||
];
|
||||
|
||||
# used in checks
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "An object-oriented JSON Schema implementation for Python";
|
||||
homepage = "https://github.com/marksparkza/jschon";
|
||||
changelog = "https://github.com/marksparkza/jschon/blob/${src.rev}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ pbsds ];
|
||||
};
|
||||
}
|
@ -6202,6 +6202,8 @@ self: super: with self; {
|
||||
|
||||
jschema-to-python = callPackage ../development/python-modules/jschema-to-python { };
|
||||
|
||||
jschon = callPackage ../development/python-modules/jschon { };
|
||||
|
||||
jsmin = callPackage ../development/python-modules/jsmin { };
|
||||
|
||||
json5 = callPackage ../development/python-modules/json5 { };
|
||||
|
Loading…
Reference in New Issue
Block a user