2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
27 lines
662 B
Nix
27 lines
662 B
Nix
{ lib, buildPythonPackage, fetchPypi, cython, libyaml, buildPackages }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyYAML";
|
|
version = "5.3.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0pb4zvkfxfijkpgd1b86xjsqql97ssf1knbd1v53wkg1qm9cgsmq";
|
|
};
|
|
|
|
# force regeneration using Cython
|
|
postPatch = ''
|
|
rm ext/_yaml.c
|
|
'';
|
|
|
|
nativeBuildInputs = [ cython buildPackages.stdenv.cc ];
|
|
|
|
buildInputs = [ libyaml ];
|
|
|
|
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 ];
|
|
};
|
|
}
|