From 90038f5282fbe6fd5477e6ca1e679bfdb3ff2872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 28 Mar 2025 10:25:57 -0700 Subject: [PATCH] python313Packages.pytest-archon: init at 0.0.6 --- .../python-modules/pytest-archon/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-archon/default.nix diff --git a/pkgs/development/python-modules/pytest-archon/default.nix b/pkgs/development/python-modules/pytest-archon/default.nix new file mode 100644 index 000000000000..643d1ae988c7 --- /dev/null +++ b/pkgs/development/python-modules/pytest-archon/default.nix @@ -0,0 +1,44 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytest, + pytestCheckHook, + setuptools, + setuptools-scm, +}: + +buildPythonPackage rec { + pname = "pytest-archon"; + version = "0.0.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "jwbargsten"; + repo = "pytest-archon"; + tag = "v${version}"; + hash = "sha256-ZKs7ifqgazEywszPGxkcPCf2WD2tEpEsbh8kHN/PL7s="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + buildInputs = [ + pytest + ]; + + pythonImportsCheck = [ "pytest_archon" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Tool that helps you structure (large) Python projects"; + homepage = "https://github.com/jwbargsten/pytest-archon"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 22d0ad6189e4..a600a6a14061 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13427,6 +13427,8 @@ self: super: with self; { pytest-ansible = callPackage ../development/python-modules/pytest-ansible { }; + pytest-archon = callPackage ../development/python-modules/pytest-archon { }; + pytest-arraydiff = callPackage ../development/python-modules/pytest-arraydiff { }; pytest-astropy = callPackage ../development/python-modules/pytest-astropy { };