3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyyaml/default.nix

28 lines
672 B
Nix
Raw Normal View History

2019-03-14 09:50:49 +00:00
{ lib, buildPythonPackage, fetchPypi, cython, libyaml, buildPackages }:
2018-02-03 11:12:06 +00:00
buildPythonPackage rec {
pname = "PyYAML";
2019-10-16 10:43:14 +01:00
version = "5.1.2";
2018-02-03 11:12:06 +00:00
src = fetchPypi {
inherit pname version;
2019-10-16 10:43:14 +01:00
sha256 = "01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4";
2018-02-03 11:12:06 +00:00
};
2019-03-14 09:50:49 +00:00
# force regeneration using Cython
postPatch = ''
rm ext/_yaml.c
'';
2019-03-14 09:50:49 +00:00
nativeBuildInputs = [ cython buildPackages.stdenv.cc ];
buildInputs = [ libyaml ];
2018-02-03 11:12:06 +00:00
meta = with lib; {
description = "The next generation YAML parser and emitter for Python";
homepage = https://github.com/yaml/pyyaml;
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}