ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / hypothesis-auto / default.nix
blob854f104be7581f4838cce6b045dfe50c73de07e7
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , hypothesis
5 , poetry
6 , pydantic
7 , pytest
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "hypothesis-auto";
13   version = "1.1.4";
14   format = "pyproject";
16   disabled = pythonOlder "3.6";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-XiwvsJ3AmEJRLYBjC7eSNZodM9LARzrUfuI9oL6eMrE=";
21   };
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   '';
30   nativeBuildInputs = [
31     poetry
32   ];
34   propagatedBuildInputs = [
35     pydantic
36     hypothesis
37     pytest
38   ];
40   pythonImportsCheck = [
41     "hypothesis_auto"
42   ];
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   };