at master 847 B view raw
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 setuptools-scm, 6 pyyaml, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "saneyaml"; 13 version = "0.6.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Gc+9i/lNcwmYFix5D+XOyau1MAzFiQ/jfcbbyqj7Frs="; 21 }; 22 23 dontConfigure = true; 24 25 build-system = [ setuptools-scm ]; 26 27 dependencies = [ pyyaml ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "saneyaml" ]; 32 33 meta = with lib; { 34 description = "PyYaml wrapper with sane behaviour to read and write readable YAML safely"; 35 homepage = "https://github.com/nexB/saneyaml"; 36 changelog = "https://github.com/aboutcode-org/saneyaml/blob/v${version}/CHANGELOG.rst"; 37 license = licenses.asl20; 38 maintainers = [ ]; 39 }; 40}