forked from mirrors/nixpkgs
hypothesis: 3.11.1 -> 3.27.0
This commit is contained in:
parent
497e5183e5
commit
fa8eb1cb46
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python
|
{ stdenv, buildPythonPackage, fetchFromGitHub, python
|
||||||
, pythonOlder, pythonAtLeast, enum34
|
, pythonOlder, pythonAtLeast, enum34
|
||||||
, doCheck ? true, pytest, pytest_xdist, flake8, flaky
|
, doCheck ? true, pytest, pytest_xdist, flake8, flaky, mock
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
# http://hypothesis.readthedocs.org/en/latest/packaging.html
|
# http://hypothesis.readthedocs.org/en/latest/packaging.html
|
||||||
|
@ -9,7 +9,7 @@ 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.11.1";
|
version = "3.27.0";
|
||||||
pname = "hypothesis";
|
pname = "hypothesis";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
@ -18,10 +18,10 @@ buildPythonPackage rec {
|
||||||
owner = "HypothesisWorks";
|
owner = "HypothesisWorks";
|
||||||
repo = "hypothesis-python";
|
repo = "hypothesis-python";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "0damf6zbm0db2a3gfwrbbj92yal576wpmhhchc0w0np8vdnax70n";
|
sha256 = "1lvhd8jrwajyc5w1alb9vinsi97fjfqpkxkh8g8j527831lig0j0";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky ];
|
checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky mock];
|
||||||
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
|
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
|
||||||
|
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A Python library for property based testing";
|
description = "A Python library for property based testing";
|
||||||
homepage = https://github.com/DRMacIver/hypothesis;
|
homepage = https://github.com/HypothesisWorks/hypothesis;
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue