python.pkgs.pyyaml: 3.13 -> 5.1
This commit is contained in:
parent
ed57afc79d
commit
566bd2605b
1 changed files with 10 additions and 5 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue