nixpkgs/pkgs/development/python-modules/saneyaml/default.nix
2024-09-18 01:00:07 +02:00

41 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 = [ ];
};
}