1{ lib 2, buildPythonPackage 3, fetchPypi 4, hypothesis 5, poetry 6, pydantic 7, pytest 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "hypothesis-auto"; 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 ]; 33 34 propagatedBuildInputs = [ 35 pydantic 36 hypothesis 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"; 46 homepage = "https://github.com/timothycrosley/hypothesis-auto/"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ jonringer ]; 49 }; 50}