Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 662 B view raw
1{ lib, buildPythonPackage, fetchPypi, cython, libyaml, buildPackages }: 2 3buildPythonPackage rec { 4 pname = "PyYAML"; 5 version = "5.3.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0pb4zvkfxfijkpgd1b86xjsqql97ssf1knbd1v53wkg1qm9cgsmq"; 10 }; 11 12 # force regeneration using Cython 13 postPatch = '' 14 rm ext/_yaml.c 15 ''; 16 17 nativeBuildInputs = [ cython buildPackages.stdenv.cc ]; 18 19 buildInputs = [ libyaml ]; 20 21 meta = with lib; { 22 description = "The next generation YAML parser and emitter for Python"; 23 homepage = "https://github.com/yaml/pyyaml"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ dotlambda ]; 26 }; 27}