forked from mirrors/nixpkgs
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
|
{ lib, buildPythonPackage, fetchFromGitHub, python
|
||||||
, pythonOlder, pythonAtLeast, enum34
|
, isPy3k, attrs, coverage, enum34
|
||||||
, doCheck ? true, pytest, pytest_xdist, flake8, flaky, mock
|
, doCheck ? true, pytest, pytest_xdist, flake8, flaky, mock
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -9,20 +9,19 @@ buildPythonPackage rec {
|
||||||
# pytz fake_factory django numpy pytest
|
# pytz fake_factory django numpy pytest
|
||||||
# If you need these, you can just add them to your environment.
|
# If you need these, you can just add them to your environment.
|
||||||
|
|
||||||
version = "3.27.0";
|
version = "3.45.2";
|
||||||
pname = "hypothesis";
|
pname = "hypothesis";
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
# Upstream prefers github tarballs
|
# Upstream prefers github tarballs
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "HypothesisWorks";
|
owner = "HypothesisWorks";
|
||||||
repo = "hypothesis-python";
|
repo = "hypothesis-python";
|
||||||
rev = "${version}";
|
rev = version;
|
||||||
sha256 = "1lvhd8jrwajyc5w1alb9vinsi97fjfqpkxkh8g8j527831lig0j0";
|
sha256 = "063sn5m1966gvm3wrlxczdq4vw0r94h3nd9xpr94qxahpg2r4bpb";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky mock];
|
checkInputs = [ pytest pytest_xdist flaky mock ];
|
||||||
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
|
propagatedBuildInputs = [ attrs coverage ] ++ lib.optional (!isPy3k) [ enum34 ];
|
||||||
|
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
|
||||||
|
@ -32,11 +31,7 @@ buildPythonPackage rec {
|
||||||
py.test tests/cover
|
py.test tests/cover
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Unsupport by upstream on certain versions
|
meta = with lib; {
|
||||||
# https://github.com/HypothesisWorks/hypothesis-python/issues/477
|
|
||||||
disabled = pythonOlder "3.4" && pythonAtLeast "2.8";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "A Python library for property based testing";
|
description = "A Python library for property based testing";
|
||||||
homepage = https://github.com/HypothesisWorks/hypothesis;
|
homepage = https://github.com/HypothesisWorks/hypothesis;
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
|
|
Loading…
Reference in a new issue