File tree Expand file tree Collapse file tree 3 files changed +62
-0
lines changed
by-name/ku/kubernetes-validate Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ python3Packages ,
3+ } :
4+ python3Packages . toPythonApplication python3Packages . kubernetes-validate
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ setuptools ,
6+ importlib-resources ,
7+ jsonschema ,
8+ packaging ,
9+ pyyaml ,
10+ referencing ,
11+ typing-extensions ,
12+ pytestCheckHook ,
13+ versionCheckHook ,
14+ } :
15+ buildPythonPackage rec {
16+ pname = "kubernetes-validate" ;
17+ version = "1.31.0" ;
18+ pyproject = true ;
19+
20+ src = fetchFromGitHub {
21+ owner = "willthames" ;
22+ repo = "kubernetes-validate" ;
23+ tag = "v${ version } " ;
24+ hash = "sha256-vxsftuipw0rHQIngxKlPHwBIW+rYAjfnEEaJDKmPyfQ=" ;
25+ } ;
26+
27+ build-system = [
28+ setuptools
29+ ] ;
30+
31+ dependencies = [
32+ importlib-resources
33+ jsonschema
34+ packaging
35+ pyyaml
36+ referencing
37+ typing-extensions
38+ ] ;
39+
40+ nativeCheckInputs = [
41+ pytestCheckHook
42+ versionCheckHook
43+ ] ;
44+ versionCheckProgramArg = [ "--version" ] ;
45+
46+ pythonImportsCheck = [ "kubernetes_validate" ] ;
47+
48+ meta = {
49+ description = "Module to validate Kubernetes resource definitions against the declared Kubernetes schemas" ;
50+ homepage = "https://github.com/willthames/kubernetes-validate" ;
51+ changelog = "https://github.com/willthames/kubernetes-validate/releases/tag/v${ version } " ;
52+ license = lib . licenses . asl20 ;
53+ maintainers = with lib . maintainers ; [ lykos153 ] ;
54+ mainProgram = "kubernetes-validate" ;
55+ } ;
56+ }
Original file line number Diff line number Diff line change @@ -7224,6 +7224,8 @@ self: super: with self; {
72247224
72257225 kubernetes-asyncio = callPackage ../development/python-modules/kubernetes-asyncio { };
72267226
7227+ kubernetes-validate = callPackage ../by-name/ku/kubernetes-validate/unwrapped.nix { };
7228+
72277229 kurbopy = callPackage ../development/python-modules/kurbopy { };
72287230
72297231 l18n = callPackage ../development/python-modules/l18n { };
You can’t perform that action at this time.
0 commit comments