depot/third_party/nixpkgs/pkgs/development/python-modules/saneyaml/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
725 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
setuptools-scm,
pyyaml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "saneyaml";
version = "0.6.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-sjCfeDZiPNbbkyV067xD4/ZcdD52NReeZL7ssNFibkQ=";
};
dontConfigure = true;
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ 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";
license = licenses.asl20;
maintainers = [ ];
};
}