mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python.pkgs.pyyaml: 3.13 -> 5.1
This commit is contained in:
parent
ed57afc79d
commit
566bd2605b
@ -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 New Issue
Block a user