1{ lib
2, buildPythonPackage
3, fetchPypi
4, hypothesis
5, poetry-core
6, pydantic
7, pytest
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "hypothesis-auto";
14 version = "1.1.5";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 pname = "hypothesis_auto";
21 inherit version;
22 hash = "sha256-U0vcOB9jXmUV5v2IwybVu2arY1FpPnKkP7m2kbD1kRw=";
23 };
24
25 nativeBuildInputs = [
26 poetry-core
27 ];
28
29 propagatedBuildInputs = [
30 pydantic
31 hypothesis
32 pytest
33 ];
34
35 pythonImportsCheck = [
36 "hypothesis_auto"
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 ];
42
43 meta = with lib; {
44 description = "Enables fully automatic tests for type annotated functions";
45 homepage = "https://github.com/timothycrosley/hypothesis-auto/";
46 license = licenses.mit;
47 maintainers = with maintainers; [ jonringer ];
48 };
49}