diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-04-09 18:28:16 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-12 18:46:15 +0000 |
commit | fd2e737e0678ee7d8081baef05b305146a2c0034 (patch) | |
tree | ac3e9b27576a0382335532d126f9a66d486bc638 /nixpkgs/pkgs/development/python-modules/hypothesis/default.nix | |
parent | cc207d720b6aa836e256c1ee9842bc739e630a8a (diff) | |
parent | 9e377a6ce42dccd9b624ae4ce8f978dc892ba0e2 (diff) | |
download | nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.gz nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.bz2 nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.lz nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.xz nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.zst nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.zip |
Merge remote-tracking branch 'nixpkgs/nixos-unstable'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/hypothesis/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/hypothesis/default.nix | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/hypothesis/default.nix b/nixpkgs/pkgs/development/python-modules/hypothesis/default.nix index dac4ca43fc91..e956cb9cc46f 100644 --- a/nixpkgs/pkgs/development/python-modules/hypothesis/default.nix +++ b/nixpkgs/pkgs/development/python-modules/hypothesis/default.nix @@ -1,7 +1,14 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, isPy3k, attrs, coverage, enum34, pexpect -, doCheck ? true, pytest, pytest_xdist, flaky, mock +{ lib +, buildPythonPackage +, pythonAtLeast +, fetchFromGitHub +, attrs +, pexpect +, doCheck ? true +, pytestCheckHook +, pytest-xdist , sortedcontainers +, tzdata }: buildPythonPackage rec { # https://hypothesis.readthedocs.org/en/latest/packaging.html @@ -10,36 +17,40 @@ buildPythonPackage rec { # pytz fake_factory django numpy pytest # If you need these, you can just add them to your environment. - version = "5.30.0"; pname = "hypothesis"; + version = "5.49.0"; # Use github tarballs that includes tests src = fetchFromGitHub { owner = "HypothesisWorks"; repo = "hypothesis-python"; rev = "hypothesis-python-${version}"; - sha256 = "0fmc4jfaksr285fjhp18ibj2rr8cxmbd0pwx370r5wf8jnhm6jb3"; + sha256 = "1lr9a93vdx70s9i1zazazif5hy8fbqhvwqq402ygpf53yw4lgi2w"; }; postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; propagatedBuildInputs = [ attrs - coverage sortedcontainers - ] ++ lib.optional (!isPy3k) enum34; + ]; + + checkInputs = [ pytestCheckHook pytest-xdist pexpect ] + ++ lib.optional (pythonAtLeast "3.9") tzdata; - checkInputs = [ pytest pytest_xdist flaky mock pexpect ]; inherit doCheck; - checkPhase = '' - rm tox.ini # This file changes how py.test runs and breaks it - py.test tests/cover + # This file changes how pytest runs and breaks it + preCheck = '' + rm tox.ini ''; + pytestFlagsArray = [ "tests/cover" ]; + meta = with lib; { description = "A Python library for property based testing"; homepage = "https://github.com/HypothesisWorks/hypothesis"; license = licenses.mpl20; + maintainers = with maintainers; [ SuperSandro2000 ]; }; } |