1{ buildPythonPackage 2, lib 3, fetchPypi 4, isPy27 5, ruamel-yaml 6, python-dateutil 7}: 8 9buildPythonPackage rec { 10 version = "1.6.2"; 11 pname = "strictyaml"; 12 disabled = isPy27; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-cM1VmA/ikp3AOJJMoI9o+WFIIjqHd4EPphbjR46+cco="; 17 }; 18 19 postPatch = '' 20 substituteInPlace setup.py \ 21 --replace "ruamel.yaml==0.17.4" "ruamel.yaml" 22 ''; 23 24 propagatedBuildInputs = [ ruamel-yaml python-dateutil ]; 25 26 # Library tested with external tool 27 # https://hitchdev.com/approach/contributing-to-hitch-libraries/ 28 doCheck = false; 29 pythonImportsCheck = [ "strictyaml" ]; 30 31 meta = with lib; { 32 description = "Strict, typed YAML parser"; 33 homepage = "https://hitchdev.com/strictyaml/"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ jonringer ]; 36 }; 37}