From 566bd2605b0220116a3771dbc34d675aa7396cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Mar 2019 10:50:49 +0100 Subject: [PATCH] python.pkgs.pyyaml: 3.13 -> 5.1 --- .../development/python-modules/pyyaml/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pyyaml/default.nix b/pkgs/development/python-modules/pyyaml/default.nix index b4732e34c4ef..84dfb549fe1c 100644 --- a/pkgs/development/python-modules/pyyaml/default.nix +++ b/pkgs/development/python-modules/pyyaml/default.nix @@ -1,17 +1,22 @@ -{ lib, buildPythonPackage, fetchPypi, libyaml, buildPackages }: +{ lib, buildPythonPackage, fetchPypi, cython, libyaml, buildPackages }: buildPythonPackage rec { pname = "PyYAML"; - version = "3.13"; + version = "5.1"; src = fetchPypi { inherit pname version; - sha256 = "3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf"; + sha256 = "436bc774ecf7c103814098159fbb84c2715d25980175292c648f2da143909f95"; }; - nativeBuildInputs = [ buildPackages.stdenv.cc ]; + # force regeneration using Cython + postPatch = '' + rm ext/_yaml.c + ''; - propagatedBuildInputs = [ libyaml ]; + nativeBuildInputs = [ cython buildPackages.stdenv.cc ]; + + buildInputs = [ libyaml ]; meta = with lib; { description = "The next generation YAML parser and emitter for Python";