2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
attrs,
|
|
|
|
jsonpickle,
|
|
|
|
pbr,
|
|
|
|
pytestCheckHook,
|
2021-12-26 17:43:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jschema-to-python";
|
|
|
|
version = "1.2.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-26 17:43:05 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "jschema_to_python";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "76ff14fe5d304708ccad1284e4b11f96a658949a31ee7faed9e0995279549b91";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
jsonpickle
|
2022-03-05 16:20:37 +00:00
|
|
|
pbr
|
2021-12-26 17:43:05 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
|
|
|
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;
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-12-26 17:43:05 +00:00
|
|
|
};
|
|
|
|
}
|