From fa696a3e7097bf56f5e6069f20b2979de6d49a0b Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 4 Jan 2017 09:08:36 +0100 Subject: [PATCH] pythonPackages.construct: 2.5.2 -> 2.8.10 --- pkgs/top-level/python-packages.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index eca41433a5a8..f5205e685746 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4125,15 +4125,22 @@ in { construct = buildPythonPackage rec { - name = "construct-2.5.2"; + name = "construct-${version}"; + version = "2.8.10"; - src = pkgs.fetchurl { - url = "mirror://pypi/c/construct/${name}.tar.gz"; - sha256 = "084h02p0m8lhmlywlwjdg0kd0hd6sz481c96qwcm5wddxrqn4nv6"; + src = pkgs.fetchFromGitHub { + owner = "construct"; + repo = "construct"; + rev = "v${version}"; + sha256 = "1xfmmc5pihn3ql9f7blrciy06y2bwczqvkbcpvh96dmgqwc3wys3"; }; propagatedBuildInputs = with self; [ six ]; + # Tests fail with the following error on Python 3.5+ + # TypeError: not all arguments converted during string formatting + doCheck = pythonOlder "3.5"; + meta = { description = "Powerful declarative parser (and builder) for binary data"; homepage = http://construct.readthedocs.org/;