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