python2Packages.hypothesis: drop
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
attrs,
|
||||
pexpect,
|
||||
doCheck ? true,
|
||||
pytest,
|
||||
flaky,
|
||||
mock,
|
||||
sortedcontainers,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
# https://hypothesis.readthedocs.org/en/latest/packaging.html
|
||||
|
||||
# Hypothesis has optional dependencies on the following libraries
|
||||
# pytz fake_factory django numpy pytest
|
||||
# If you need these, you can just add them to your environment.
|
||||
|
||||
version = "4.57.1";
|
||||
format = "setuptools";
|
||||
pname = "hypothesis";
|
||||
|
||||
# Use github tarballs that includes tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "HypothesisWorks";
|
||||
repo = "hypothesis-python";
|
||||
rev = "hypothesis-python-${version}";
|
||||
sha256 = "1qcpcrk6892hzyjsdr581pw6i4fj9035nv89mcjrcrzcmycdlfds";
|
||||
};
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
sortedcontainers
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
flaky
|
||||
mock
|
||||
pexpect
|
||||
];
|
||||
inherit doCheck;
|
||||
|
||||
checkPhase = ''
|
||||
rm tox.ini # This file changes how py.test runs and breaks it
|
||||
py.test tests/cover
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Python library for property based testing";
|
||||
homepage = "https://github.com/HypothesisWorks/hypothesis";
|
||||
license = lib.licenses.mpl20;
|
||||
};
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
attrs,
|
||||
hypothesis,
|
||||
py,
|
||||
setuptools-scm,
|
||||
setuptools,
|
||||
@@ -35,9 +34,9 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
hypothesis
|
||||
mock
|
||||
];
|
||||
|
||||
buildInputs = [ setuptools-scm ];
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
|
||||
@@ -25,7 +25,7 @@ with super;
|
||||
|
||||
filelock = disabled super.filelock;
|
||||
|
||||
hypothesis = callPackage ../development/python2-modules/hypothesis { };
|
||||
hypothesis = disabled super.hypothesis;
|
||||
|
||||
importlib-metadata = callPackage ../development/python2-modules/importlib-metadata { };
|
||||
|
||||
@@ -53,12 +53,7 @@ with super;
|
||||
|
||||
pytest = pytest_4;
|
||||
|
||||
pytest_4 = callPackage ../development/python2-modules/pytest {
|
||||
# hypothesis tests require pytest that causes dependency cycle
|
||||
hypothesis = self.hypothesis.override {
|
||||
doCheck = false;
|
||||
};
|
||||
};
|
||||
pytest_4 = callPackage ../development/python2-modules/pytest { };
|
||||
|
||||
pytest-xdist = disabled super.pytest-xdist;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user