lol

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 2 , hypothesis 3 , poetry 4 , pydantic 5 , pytest 6 }: 7 8 buildPythonPackage rec { ··· 10 version = "1.1.4"; 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit pname version; 15 - sha256 = "1c9jksza0gg2gva3liy0s8riv6imjavhnqw05m8l5660knq2yb2y"; 16 }; 17 18 nativeBuildInputs = [ 19 poetry 20 ]; ··· 25 pytest 26 ]; 27 28 - pythonImportsCheck = [ "hypothesis_auto" ]; 29 30 meta = with lib; { 31 description = "Enables fully automatic tests for type annotated functions";
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 , hypothesis 5 , poetry 6 , pydantic 7 , pytest 8 + , pythonOlder 9 }: 10 11 buildPythonPackage rec { ··· 13 version = "1.1.4"; 14 format = "pyproject"; 15 16 + disabled = pythonOlder "3.6"; 17 + 18 src = fetchPypi { 19 inherit pname version; 20 + hash = "sha256-XiwvsJ3AmEJRLYBjC7eSNZodM9LARzrUfuI9oL6eMrE="; 21 }; 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 + 30 nativeBuildInputs = [ 31 poetry 32 ]; ··· 37 pytest 38 ]; 39 40 + pythonImportsCheck = [ 41 + "hypothesis_auto" 42 + ]; 43 44 meta = with lib; { 45 description = "Enables fully automatic tests for type annotated functions";