diff options
Diffstat (limited to 'pkgs/development/python-modules/hypothesis/default.nix')
-rw-r--r-- | pkgs/development/python-modules/hypothesis/default.nix | 89 |
1 files changed, 44 insertions, 45 deletions
diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix index 5cf3408c89b73..a76b8e2ff29d3 100644 --- a/pkgs/development/python-modules/hypothesis/default.nix +++ b/pkgs/development/python-modules/hypothesis/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, isPyPy -, fetchFromGitHub -, setuptools -, attrs -, exceptiongroup -, pexpect -, doCheck ? true -, pytestCheckHook -, pytest-xdist -, python -, sortedcontainers -, stdenv -, pythonOlder -, sphinxHook -, sphinx-rtd-theme -, sphinx-hoverxref -, sphinx-codeautolink -, tzdata +{ + lib, + buildPythonPackage, + isPyPy, + fetchFromGitHub, + setuptools, + attrs, + exceptiongroup, + pexpect, + doCheck ? true, + pytestCheckHook, + pytest-xdist, + python, + sortedcontainers, + stdenv, + pythonOlder, + sphinxHook, + sphinx-rtd-theme, + sphinx-hoverxref, + sphinx-codeautolink, + tzdata, }: buildPythonPackage rec { pname = "hypothesis"; - version = "6.99.12"; + version = "6.103.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -31,7 +32,7 @@ buildPythonPackage rec { owner = "HypothesisWorks"; repo = "hypothesis"; rev = "hypothesis-python-${version}"; - hash = "sha256-0nzjRDv4L3bxxnC0lBY5S7FP9CFhyzHzNchWXoX91Zg="; + hash = "sha256-sll0GAI1nvBQvRqgpTkLpj7GQI988AftDQHV1zh2t1w="; }; # I tried to package sphinx-selective-exclude, but it throws @@ -49,24 +50,18 @@ buildPythonPackage rec { postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs sortedcontainers - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]; nativeCheckInputs = [ pexpect pytest-xdist pytestCheckHook - ] ++ lib.optionals isPyPy [ - tzdata - ]; + ] ++ lib.optionals isPyPy [ tzdata ]; inherit doCheck; @@ -75,21 +70,23 @@ buildPythonPackage rec { rm tox.ini ''; - pytestFlagsArray = [ - "tests/cover" - ]; + pytestFlagsArray = [ "tests/cover" ]; - disabledTests = if (pythonOlder "3.10") then [ - # not sure why these tests fail with only 3.9 - # FileNotFoundError: [Errno 2] No such file or directory: 'git' - "test_observability" - "test_assume_has_status_reason" - "test_observability_captures_stateful_reprs" - ] else null; + disabledTests = + [ + # racy, fails to find a file sometimes + "test_recreate_charmap" + "test_uses_cached_charmap" + ] + ++ lib.optionals (pythonOlder "3.10") [ + # not sure why these tests fail with only 3.9 + # FileNotFoundError: [Errno 2] No such file or directory: 'git' + "test_observability" + "test_assume_has_status_reason" + "test_observability_captures_stateful_reprs" + ]; - pythonImportsCheck = [ - "hypothesis" - ]; + pythonImportsCheck = [ "hypothesis" ]; passthru = { doc = stdenv.mkDerivation { @@ -119,7 +116,9 @@ buildPythonPackage rec { description = "Library for property based testing"; mainProgram = "hypothesis"; homepage = "https://github.com/HypothesisWorks/hypothesis"; - changelog = "https://hypothesis.readthedocs.io/en/latest/changes.html#v${lib.replaceStrings [ "." ] [ "-" ] version}"; + changelog = "https://hypothesis.readthedocs.io/en/latest/changes.html#v${ + lib.replaceStrings [ "." ] [ "-" ] version + }"; license = licenses.mpl20; maintainers = with maintainers; [ ]; }; |