git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.hypothesis: 3.5.2 -> 3.6.0
commitc6c2137a9cd5e757ee6fdd00dce1f975dff62736 authorLancelot SIX <lsix@lancelotsix.com> dateMon 30 Jan 2017, 21:15 (10 years ago) parentf66d782
2 files changed+39−35
pkgs/development/python-modules/hypothesis.nix+38 pkgs/top-level/python-packages.nix+1−35
pkgs/development/python-modules/hypothesis.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub, python
2+, isPy27, enum34
3+, doCheck ? true, pytest, flake8, flaky
4+}:
5+buildPythonPackage rec {
6+ # http://hypothesis.readthedocs.org/en/latest/packaging.html
7+
8+ # Hypothesis has optional dependencies on the following libraries
9+ # pytz fake_factory django numpy pytest
10+ # If you need these, you can just add them to your environment.
11+
12+ name = "hypothesis-${version}";
13+ version = "3.6.0";
14+
15+ # Upstream prefers github tarballs
16+ src = fetchFromGitHub {
17+ owner = "HypothesisWorks";
18+ repo = "hypothesis";
19+ rev = "${version}";
20+ sha256 = "0a3r4c8sr9jn7sv419vdzrzfc9sp7zf105f1lgyiwyzi3cgyvcvg";
21+ };
22+
23+ buildInputs = stdenv.lib.optionals doCheck [ pytest flake8 flaky ];
24+ propagatedBuildInputs = stdenv.lib.optionals isPy27 [ enum34 ];
25+
26+ inherit doCheck;
27+
28+ # https://github.com/DRMacIver/hypothesis/issues/300
29+ checkPhase = ''
30+ ${python.interpreter} -m pytest tests/cover
31+ '';
32+
33+ meta = with stdenv.lib; {
34+ description = "A Python library for property based testing";
35+ homepage = https://github.com/DRMacIver/hypothesis;
36+ license = licenses.mpl20;
37+ };
38+}
pkgs/top-level/python-packages.nix+1−35
@@ -12548,41 +12548,7 @@ in {
1254812548 propagatedBuildInputs = with self; [ requests2 ];
1254912549 };
1255012550
12551− hypothesis = buildPythonPackage rec {
12552− # http://hypothesis.readthedocs.org/en/latest/packaging.html
12553−
12554− # Hypothesis has optional dependencies on the following libraries
12555− # pytz fake_factory django numpy pytest
12556− # If you need these, you can just add them to your environment.
12557−
12558− name = "hypothesis-${version}";
12559− version = "3.5.2";
12560−
12561− # Upstream prefers github tarballs
12562− src = pkgs.fetchFromGitHub {
12563− owner = "HypothesisWorks";
12564− repo = "hypothesis";
12565− rev = "${version}";
12566− sha256 = "030rf4gn4b0hylr90wazilwa3bc038fcqng0wibcx67mqaq035n4";
12567− };
12568−
12569− buildInputs = with self; [ flake8 pytest flaky ];
12570− propagatedBuildInputs = with self; ([ uncompyle6 ] ++ optionals isPy27 [ enum34 ]);
12571−
12572− # Fails randomly in tests/cover/test_conjecture_engine.py::test_interleaving_engines.
12573− doCheck = false;
12574−
12575− # https://github.com/DRMacIver/hypothesis/issues/300
12576− checkPhase = ''
12577− ${python.interpreter} -m pytest tests/cover
12578− '';
12579−
12580− meta = {
12581− description = "A Python library for property based testing";
12582− homepage = https://github.com/DRMacIver/hypothesis;
12583− license = licenses.mpl20;
12584− };
12585− };
12551+ hypothesis = callPackage ../development/python-modules/hypothesis.nix { };
1258612552
1258712553 colored = buildPythonPackage rec {
1258812554 name = "colored-${version}";