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