13 buildPythonPackage rec {
14 # https://hypothesis.readthedocs.org/en/latest/packaging.html
16 # Hypothesis has optional dependencies on the following libraries
17 # pytz fake_factory django numpy pytest
18 # If you need these, you can just add them to your environment.
23 # Use github tarballs that includes tests
24 src = fetchFromGitHub {
25 owner = "HypothesisWorks";
26 repo = "hypothesis-python";
27 rev = "hypothesis-python-${version}";
28 sha256 = "1lr9a93vdx70s9i1zazazif5hy8fbqhvwqq402ygpf53yw4lgi2w";
31 postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
33 propagatedBuildInputs = [
38 checkInputs = [ pytestCheckHook pytest-xdist pexpect ]
39 ++ lib.optional (pythonAtLeast "3.9") tzdata;
43 # This file changes how pytest runs and breaks it
48 pytestFlagsArray = [ "tests/cover" ];
51 description = "A Python library for property based testing";
52 homepage = "https://github.com/HypothesisWorks/hypothesis";
53 license = licenses.mpl20;
54 maintainers = with maintainers; [ SuperSandro2000 ];