about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jschema-to-python/default.nix
blob: fcd80c652d4131d9698937ebf56f2ea5b8b54a14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, buildPythonPackage, fetchPypi
, attrs
, jsonpickle
, pbr
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "jschema-to-python";
  version = "1.2.3";
  format = "setuptools";

  src = fetchPypi {
    pname = "jschema_to_python";
    inherit version;
    sha256 = "76ff14fe5d304708ccad1284e4b11f96a658949a31ee7faed9e0995279549b91";
  };

  propagatedBuildInputs = [
    attrs
    jsonpickle
    pbr
  ];

  nativeCheckInputs =[
    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 ];
  };
}