summary refs log tree commit diff
path: root/pkgs/development/python-modules/hypothesis
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-02-12 11:02:07 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-02-18 20:07:43 +0100
commitd800601ae5fa792c3b1582ac28787d324b772b8a (patch)
treea1b2ef58967fae9f8fc6c57dcf8d9c6b4867f0c2 /pkgs/development/python-modules/hypothesis
parent2419eb407707ab07e8f51dac39f0bc8c48bc789a (diff)
downloadnixlib-d800601ae5fa792c3b1582ac28787d324b772b8a.tar
nixlib-d800601ae5fa792c3b1582ac28787d324b772b8a.tar.gz
nixlib-d800601ae5fa792c3b1582ac28787d324b772b8a.tar.bz2
nixlib-d800601ae5fa792c3b1582ac28787d324b772b8a.tar.lz
nixlib-d800601ae5fa792c3b1582ac28787d324b772b8a.tar.xz
nixlib-d800601ae5fa792c3b1582ac28787d324b772b8a.tar.zst
nixlib-d800601ae5fa792c3b1582ac28787d324b772b8a.zip
pythonPackages.hypothesis: 3.27.0 -> 3.45.2
Diffstat (limited to 'pkgs/development/python-modules/hypothesis')
-rw-r--r--pkgs/development/python-modules/hypothesis/default.nix23
1 files changed, 9 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix
index 91939d146887..d5ee59ac2d92 100644
--- a/pkgs/development/python-modules/hypothesis/default.nix
+++ b/pkgs/development/python-modules/hypothesis/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, buildPythonPackage, fetchFromGitHub, python
-, pythonOlder, pythonAtLeast, enum34
+{ lib, buildPythonPackage, fetchFromGitHub, python
+, isPy3k, attrs, coverage, enum34
 , doCheck ? true, pytest, pytest_xdist, flake8, flaky, mock
 }:
 buildPythonPackage rec {
@@ -9,20 +9,19 @@ buildPythonPackage rec {
   # pytz fake_factory django numpy pytest
   # If you need these, you can just add them to your environment.
 
-  version = "3.27.0";
+  version = "3.45.2";
   pname = "hypothesis";
-  name = "${pname}-${version}";
 
   # Upstream prefers github tarballs
   src = fetchFromGitHub {
     owner = "HypothesisWorks";
     repo = "hypothesis-python";
-    rev = "${version}";
-    sha256 = "1lvhd8jrwajyc5w1alb9vinsi97fjfqpkxkh8g8j527831lig0j0";
- };
+    rev = version;
+    sha256 = "063sn5m1966gvm3wrlxczdq4vw0r94h3nd9xpr94qxahpg2r4bpb";
+  };
 
-  checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky mock];
-  propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
+  checkInputs = [ pytest pytest_xdist flaky mock ];
+  propagatedBuildInputs = [ attrs coverage ] ++ lib.optional (!isPy3k) [ enum34 ];
 
   inherit doCheck;
 
@@ -32,11 +31,7 @@ buildPythonPackage rec {
     py.test tests/cover
   '';
 
-  # Unsupport by upstream on certain versions
-  # https://github.com/HypothesisWorks/hypothesis-python/issues/477
-  disabled = pythonOlder "3.4" && pythonAtLeast "2.8";
-
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "A Python library for property based testing";
     homepage = https://github.com/HypothesisWorks/hypothesis;
     license = licenses.mpl20;