159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
41 lines
861 B
Nix
41 lines
861 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
setuptools-scm,
|
|
pyyaml,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|