From 542af6df876aeba2c8993383daeb0ec27bb16653 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 18 Nov 2019 08:37:24 -0800 Subject: [PATCH] conan: 1.12.0 -> 1.12.3 Remove PyYAML_3 --- .../tools/build-managers/conan/default.nix | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/pkgs/development/tools/build-managers/conan/default.nix b/pkgs/development/tools/build-managers/conan/default.nix index ce7b08710441..59b1b14ac5fa 100644 --- a/pkgs/development/tools/build-managers/conan/default.nix +++ b/pkgs/development/tools/build-managers/conan/default.nix @@ -1,4 +1,4 @@ -{ lib, python3, git }: +{ lib, python3, git, pkgconfig }: let newPython = python3.override { packageOverrides = self: super: { @@ -37,28 +37,17 @@ let newPython = python3.override { sha256 = "c0abe3218b86533cca287e7057a37481883c07acef7814b70583406938214cc8"; }; }); - pyyaml = super.pyyaml_3; }; }; in newPython.pkgs.buildPythonApplication rec { - version = "1.12.0"; + version = "1.12.3"; pname = "conan"; src = newPython.pkgs.fetchPypi { inherit pname version; - sha256 = "0hgy3wfy96likdchz42h9mawfjw4dxx7k2iinrrlhph7128kji1j"; + sha256 = "1cnfy9b57apps4bfai6r67g0mrvgnqa154z9idv0kf93k1nvx53g"; }; - checkInputs = [ - git - ] ++ (with newPython.pkgs; [ - codecov - mock - node-semver - nose - parameterized - webtest - ]); propagatedBuildInputs = with newPython.pkgs; [ colorama deprecation distro fasteners bottle @@ -66,14 +55,30 @@ in newPython.pkgs.buildPythonApplication rec { pyjwt pylint pyyaml requests six tqdm ]; + checkInputs = [ + pkgconfig + git + ] ++ (with newPython.pkgs; [ + codecov + mock + pytest + node-semver + nose + parameterized + webtest + ]); + checkPhase = '' - export HOME="$TMP/conan-home" - mkdir -p "$HOME" + export HOME=$TMPDIR + pytest conans/test/{utils,unittests} \ + -k 'not SVN and not ToolsNetTest' ''; postPatch = '' substituteInPlace conans/requirements_server.txt \ --replace "pluginbase>=0.5, < 1.0" "pluginbase>=0.5" + substituteInPlace conans/requirements.txt \ + --replace "PyYAML>=3.11, <3.14.0" "PyYAML" ''; meta = with lib; {