depot/third_party/nixpkgs/pkgs/development/python-modules/saneyaml/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

40 lines
847 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
setuptools-scm,
pyyaml,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "saneyaml";
version = "0.6.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Gc+9i/lNcwmYFix5D+XOyau1MAzFiQ/jfcbbyqj7Frs=";
};
dontConfigure = true;
build-system = [ setuptools-scm ];
dependencies = [ pyyaml ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "saneyaml" ];
meta = with lib; {
description = "PyYaml wrapper with sane behaviour to read and write readable YAML safely";
homepage = "https://github.com/nexB/saneyaml";
changelog = "https://github.com/aboutcode-org/saneyaml/blob/v${version}/CHANGELOG.rst";
license = licenses.asl20;
maintainers = [ ];
};
}