Merge pull request #199116 from fabaff/hypothesis-auto-fix

python310Packages.hypothesis-auto: fix validation issue

authored by

Fabian Affolter and committed by
GitHub
d507aebe 79e682ad

+17 -3
+17 -3
pkgs/development/python-modules/hypothesis-auto/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 2 4 , hypothesis 3 5 , poetry 4 6 , pydantic 5 7 , pytest 8 + , pythonOlder 6 9 }: 7 10 8 11 buildPythonPackage rec { ··· 10 13 version = "1.1.4"; 11 14 format = "pyproject"; 12 15 16 + disabled = pythonOlder "3.6"; 17 + 13 18 src = fetchPypi { 14 19 inherit pname version; 15 - sha256 = "1c9jksza0gg2gva3liy0s8riv6imjavhnqw05m8l5660knq2yb2y"; 20 + hash = "sha256-XiwvsJ3AmEJRLYBjC7eSNZodM9LARzrUfuI9oL6eMrE="; 16 21 }; 17 22 23 + postPatch = '' 24 + # https://github.com/timothycrosley/hypothesis-auto/pull/20 25 + substituteInPlace pyproject.toml \ 26 + --replace 'pydantic = ">=0.32.2<2.0.0"' 'pydantic = ">=0.32.2, <2.0.0"' \ 27 + --replace 'hypothesis = ">=4.36<6.0.0"' 'hypothesis = "*"' 28 + ''; 29 + 18 30 nativeBuildInputs = [ 19 31 poetry 20 32 ]; ··· 25 37 pytest 26 38 ]; 27 39 28 - pythonImportsCheck = [ "hypothesis_auto" ]; 40 + pythonImportsCheck = [ 41 + "hypothesis_auto" 42 + ]; 29 43 30 44 meta = with lib; { 31 45 description = "Enables fully automatic tests for type annotated functions";