mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:44:09 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
739 B
Nix
38 lines
739 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;
|
|
sha256 = "76ff14fe5d304708ccad1284e4b11f96a658949a31ee7faed9e0995279549b91";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|