python.pkgs.pyyaml: 3.13 -> 5.1

This commit is contained in:
Robert Schütz 2019-03-14 10:50:49 +01:00
parent ed57afc79d
commit 566bd2605b

View File

@ -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";