pythonPackages.hypothesis: 3.27.0 -> 3.45.2
This commit is contained in:
parent
2419eb4077
commit
d800601ae5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user