pythonPackages.hypothesis: 5.30.0 -> 5.49.0
A newer version is required for hypothesmith so I just updated to the latest 5.X.X version.
This commit is contained in:
parent
6cd9fe299c
commit
701b8560a9
|
@ -1,7 +1,14 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub
|
{ lib
|
||||||
, isPy3k, attrs, coverage, enum34, pexpect
|
, buildPythonPackage
|
||||||
, doCheck ? true, pytest, pytest_xdist, flaky, mock
|
, pythonAtLeast
|
||||||
|
, fetchFromGitHub
|
||||||
|
, attrs
|
||||||
|
, pexpect
|
||||||
|
, doCheck ? true
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-xdist
|
||||||
, sortedcontainers
|
, sortedcontainers
|
||||||
|
, tzdata
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
# https://hypothesis.readthedocs.org/en/latest/packaging.html
|
# https://hypothesis.readthedocs.org/en/latest/packaging.html
|
||||||
|
@ -10,36 +17,40 @@ 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 = "5.30.0";
|
|
||||||
pname = "hypothesis";
|
pname = "hypothesis";
|
||||||
|
version = "5.49.0";
|
||||||
|
|
||||||
# Use github tarballs that includes tests
|
# Use github tarballs that includes tests
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "HypothesisWorks";
|
owner = "HypothesisWorks";
|
||||||
repo = "hypothesis-python";
|
repo = "hypothesis-python";
|
||||||
rev = "hypothesis-python-${version}";
|
rev = "hypothesis-python-${version}";
|
||||||
sha256 = "0fmc4jfaksr285fjhp18ibj2rr8cxmbd0pwx370r5wf8jnhm6jb3";
|
sha256 = "1lr9a93vdx70s9i1zazazif5hy8fbqhvwqq402ygpf53yw4lgi2w";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
|
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
attrs
|
attrs
|
||||||
coverage
|
|
||||||
sortedcontainers
|
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;
|
inherit doCheck;
|
||||||
|
|
||||||
checkPhase = ''
|
# This file changes how pytest runs and breaks it
|
||||||
rm tox.ini # This file changes how py.test runs and breaks it
|
preCheck = ''
|
||||||
py.test tests/cover
|
rm tox.ini
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "tests/cover" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with 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;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue