From 3b4a4428cae65c2c8a923a156d8a10c6693f61e7 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Tue, 21 Jun 2016 23:04:50 +0200 Subject: [PATCH] python-lti: pin mock dependency at 1.0.1 --- pkgs/top-level/python-packages.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e0669abd218..2d61728a551 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6965,7 +6965,16 @@ in modules // { }; }; - lti = let self' = (self.override {self = self';}) // {pytest = self.pytest_27;}; + lti = let + self' = (self.override {self = self';}) // {pytest = self.pytest_27;}; + mock_1_0_1 = self'.mock.overrideDerivation (_: rec { + name = "mock-1.0.1"; + propagatedBuildInputs = null; + src = pkgs.fetchurl { + url = "http://pypi.python.org/packages/source/m/mock/${name}.tar.gz"; + sha256 = "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"; + }; + }); in buildPythonPackage rec { version = "0.4.1"; name = "PyLTI-${version}"; @@ -6975,7 +6984,7 @@ in modules // { propagatedBuildInputs = with self; [ httplib2 oauth oauth2 semantic-version ]; buildInputs = with self'; [ flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore - pytestflakes pytestpep8 sphinx mock + pytestflakes pytestpep8 sphinx mock_1_0_1 ]; src = pkgs.fetchurl {