Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 22 lines 595 B view raw
1{ lib, buildPythonPackage, fetchPypi, cython, libyaml, buildPackages }: 2 3buildPythonPackage rec { 4 pname = "PyYAML"; 5 version = "5.4.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"; 10 }; 11 12 nativeBuildInputs = [ cython buildPackages.stdenv.cc ]; 13 14 buildInputs = [ libyaml ]; 15 16 meta = with lib; { 17 description = "The next generation YAML parser and emitter for Python"; 18 homepage = "https://github.com/yaml/pyyaml"; 19 license = licenses.mit; 20 maintainers = with maintainers; [ dotlambda ]; 21 }; 22}