mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-03 03:10:17 +00:00
39 lines
724 B
Nix
39 lines
724 B
Nix
{
|
|
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;
|
|
hash = "sha256-dv8U/l0wRwjMrRKE5LEflqZYlJox7n+u2eCZUnlUm5E=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
jsonpickle
|
|
pbr
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jschema_to_python" ];
|
|
|
|
meta = {
|
|
description = "Generate source code for Python classes from a JSON schema";
|
|
homepage = "https://github.com/microsoft/jschema-to-python";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|