Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 setuptools-scm, 6 pyyaml, 7 pytestCheckHook, 8}: 9buildPythonPackage rec { 10 pname = "saneyaml"; 11 version = "0.6.0"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-sjCfeDZiPNbbkyV067xD4/ZcdD52NReeZL7ssNFibkQ="; 17 }; 18 19 dontConfigure = true; 20 21 nativeBuildInputs = [ setuptools-scm ]; 22 23 propagatedBuildInputs = [ pyyaml ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "saneyaml" ]; 28 29 meta = with lib; { 30 description = "PyYaml wrapper with sane behaviour to read and write readable YAML safely"; 31 homepage = "https://github.com/nexB/saneyaml"; 32 license = licenses.asl20; 33 maintainers = [ ]; 34 }; 35}