python3Packages.jschema-to-python: init at 1.2.3

This commit is contained in:
Jonathan Ringer 2021-11-29 22:14:30 -08:00
parent 9e3234aa9f
commit 87acd0eb02
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ lib, buildPythonPackage, fetchPypi
, attrs
, jsonpickle
, pbr
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "jschema-to-python";
version = "1.2.3";
src = fetchPypi {
pname = "jschema_to_python";
inherit version;
sha256 = "76ff14fe5d304708ccad1284e4b11f96a658949a31ee7faed9e0995279549b91";
};
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
attrs
jsonpickle
];
checkInputs =[
pytestCheckHook
];
pythonImportsCheck = [ "jschema_to_python" ];
meta = with lib; {
description = "Generate source code for Python classes from a JSON schema";
homepage = "https://github.com/microsoft/jschema-to-python";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}

View File

@ -4040,6 +4040,8 @@ in {
jsbeautifier = callPackage ../development/python-modules/jsbeautifier { };
jschema-to-python = callPackage ../development/python-modules/jschema-to-python { };
jsmin = callPackage ../development/python-modules/jsmin { };
json5 = callPackage ../development/python-modules/json5 { };