diff --git a/pkgs/development/python-modules/essentials-openapi/default.nix b/pkgs/development/python-modules/essentials-openapi/default.nix new file mode 100644 index 000000000000..52824049c6c1 --- /dev/null +++ b/pkgs/development/python-modules/essentials-openapi/default.nix @@ -0,0 +1,65 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + click, + essentials, + flask, + hatchling, + httpx, + jinja2, + markupsafe, + pydantic, + pytestCheckHook, + pythonImportsCheckHook, + pyyaml, + rich, + setuptools +}: +buildPythonPackage rec { + pname = "essentials-openapi"; + version = "1.0.7"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Neoteroi"; + repo = "essentials-openapi"; + rev = "v${version}"; + hash = "sha256-j0vEMNXZ9TrcFx8iIyTFQIwF49LEincLmnAt+qodYmA="; + }; + + nativeBuildInputs = [ + hatchling + ]; + + nativeCheckInputs = [ + flask + httpx + pydantic + pytestCheckHook + rich + setuptools + ]; + + propagatedBuildInputs = [ + pyyaml + essentials + markupsafe + ]; + + passthru.optional-dependencies = { + full = [ click jinja2 rich httpx ]; + }; + + pythonImportsCheck = [ + "openapidocs" + ]; + + meta = with lib; { + homepage = "https://github.com/Neoteroi/essentials-openapi"; + description = "Functions to handle OpenAPI Documentation"; + changelog = "https://github.com/Neoteroi/essentials-openapi/releases/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [aldoborrero zimbatm]; + }; +} diff --git a/pkgs/development/python-modules/essentials/default.nix b/pkgs/development/python-modules/essentials/default.nix new file mode 100644 index 000000000000..69a494a0eb5d --- /dev/null +++ b/pkgs/development/python-modules/essentials/default.nix @@ -0,0 +1,38 @@ +{ + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonImportsCheckHook, + lib, +}: +buildPythonPackage rec { + pname = "essentials"; + version = "1.1.5"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Neoteroi"; + repo = "essentials"; + rev = "v${version}"; + hash = "sha256-WMHjBVkeSoQ4Naj1U7Bg9j2hcoErH1dx00BPKiom9T4="; + }; + + nativeBuildInputs = [ setuptools ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "essentials" + ]; + + meta = with lib; { + homepage = "https://github.com/Neoteroi/essentials"; + description = "General purpose classes and functions"; + changelog = "https://github.com/Neoteroi/essentials/releases/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [aldoborrero zimbatm]; + }; +} diff --git a/pkgs/development/python-modules/neoteroi-mkdocs/default.nix b/pkgs/development/python-modules/neoteroi-mkdocs/default.nix new file mode 100644 index 000000000000..30b226c6d5bb --- /dev/null +++ b/pkgs/development/python-modules/neoteroi-mkdocs/default.nix @@ -0,0 +1,63 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + click, + essentials-openapi, + flask, + hatchling, + httpx, + jinja2, + mkdocs, + pytestCheckHook, + pythonImportsCheckHook, + rich, + setuptools, +}: +buildPythonPackage rec { + pname = "neoteroi-mkdocs"; + version = "1.0.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Neoteroi"; + repo = "mkdocs-plugins"; + rev = "v${version}"; + hash = "sha256-UyTlgKWdBWckI9sBL4GRQtgNHYpHpZlWVOdmdQ+7lss="; + }; + + buildInputs = [ + hatchling + ]; + + nativeCheckInputs = [ + pytestCheckHook + flask + setuptools + ]; + + propagatedBuildInputs = [ + essentials-openapi + click + jinja2 + httpx + mkdocs + rich + ]; + + disabledTests = [ + "test_contribs" # checks against its own git repository + ]; + + pythonImportsCheck = [ + "neoteroi.mkdocs" + ]; + + meta = with lib; { + homepage = "https://github.com/Neoteroi/mkdocs-plugins"; + description = "Plugins for MkDocs"; + changelog = "https://github.com/Neoteroi/mkdocs-plugins/releases/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [aldoborrero zimbatm]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4b0d7d6b400e..96c6b16a3f59 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3749,6 +3749,10 @@ self: super: with self; { escapism = callPackage ../development/python-modules/escapism { }; + essentials = callPackage ../development/python-modules/essentials { }; + + essentials-openapi = callPackage ../development/python-modules/essentials-openapi { }; + etcd = callPackage ../development/python-modules/etcd { }; etcd3 = callPackage ../development/python-modules/etcd3 { @@ -8309,6 +8313,8 @@ self: super: with self; { neo4j = callPackage ../development/python-modules/neo4j { }; + neoteroi-mkdocs = callPackage ../development/python-modules/neoteroi-mkdocs { }; + nessclient = callPackage ../development/python-modules/nessclient { }; nest = toPythonModule(pkgs.nest-mpi.override { withPython = true; python3 = python; });