depot/third_party/nixpkgs/pkgs/development/python-modules/jschema-to-python/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

36 lines
736 B
Nix

{ 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";
};
propagatedBuildInputs = [
attrs
jsonpickle
pbr
];
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 ];
};
}