Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 27 lines 672 B view raw
1{ lib, buildPythonPackage, fetchPypi, cython, libyaml, buildPackages }: 2 3buildPythonPackage rec { 4 pname = "PyYAML"; 5 version = "5.1.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "b4bb4d3f5e232425e25dda21c070ce05168a786ac9eda43768ab7f3ac2770955"; 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}