From eb24888d98e7ab43f50d2e8681f955dcecf1c965 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 14 Jan 2026 21:51:39 +0100 Subject: [PATCH] python2Packages.hypothesis: drop --- .../python2-modules/hypothesis/default.nix | 57 ------------------- .../python2-modules/pytest/default.nix | 3 +- pkgs/top-level/python2-packages.nix | 9 +-- 3 files changed, 3 insertions(+), 66 deletions(-) delete mode 100644 pkgs/development/python2-modules/hypothesis/default.nix diff --git a/pkgs/development/python2-modules/hypothesis/default.nix b/pkgs/development/python2-modules/hypothesis/default.nix deleted file mode 100644 index 89331389b4d5..000000000000 --- a/pkgs/development/python2-modules/hypothesis/default.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - attrs, - pexpect, - doCheck ? true, - pytest, - flaky, - mock, - sortedcontainers, -}: -buildPythonPackage rec { - # https://hypothesis.readthedocs.org/en/latest/packaging.html - - # Hypothesis has optional dependencies on the following libraries - # pytz fake_factory django numpy pytest - # If you need these, you can just add them to your environment. - - version = "4.57.1"; - format = "setuptools"; - pname = "hypothesis"; - - # Use github tarballs that includes tests - src = fetchFromGitHub { - owner = "HypothesisWorks"; - repo = "hypothesis-python"; - rev = "hypothesis-python-${version}"; - sha256 = "1qcpcrk6892hzyjsdr581pw6i4fj9035nv89mcjrcrzcmycdlfds"; - }; - - postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; - - propagatedBuildInputs = [ - attrs - sortedcontainers - ]; - - nativeCheckInputs = [ - pytest - flaky - mock - pexpect - ]; - inherit doCheck; - - checkPhase = '' - rm tox.ini # This file changes how py.test runs and breaks it - py.test tests/cover - ''; - - meta = { - description = "Python library for property based testing"; - homepage = "https://github.com/HypothesisWorks/hypothesis"; - license = lib.licenses.mpl20; - }; -} diff --git a/pkgs/development/python2-modules/pytest/default.nix b/pkgs/development/python2-modules/pytest/default.nix index 3adb0a7d4aad..b8ddc2299704 100644 --- a/pkgs/development/python2-modules/pytest/default.nix +++ b/pkgs/development/python2-modules/pytest/default.nix @@ -3,7 +3,6 @@ buildPythonPackage, fetchPypi, attrs, - hypothesis, py, setuptools-scm, setuptools, @@ -35,9 +34,9 @@ buildPythonPackage rec { ''; nativeCheckInputs = [ - hypothesis mock ]; + buildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs diff --git a/pkgs/top-level/python2-packages.nix b/pkgs/top-level/python2-packages.nix index 41f4914c7421..9ef1c960f979 100644 --- a/pkgs/top-level/python2-packages.nix +++ b/pkgs/top-level/python2-packages.nix @@ -25,7 +25,7 @@ with super; filelock = disabled super.filelock; - hypothesis = callPackage ../development/python2-modules/hypothesis { }; + hypothesis = disabled super.hypothesis; importlib-metadata = callPackage ../development/python2-modules/importlib-metadata { }; @@ -53,12 +53,7 @@ with super; pytest = pytest_4; - pytest_4 = callPackage ../development/python2-modules/pytest { - # hypothesis tests require pytest that causes dependency cycle - hypothesis = self.hypothesis.override { - doCheck = false; - }; - }; + pytest_4 = callPackage ../development/python2-modules/pytest { }; pytest-xdist = disabled super.pytest-xdist;