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

45 lines
908 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
pyyaml,
ruamel-yaml,
setuptools,
}:
buildPythonPackage rec {
pname = "yamale";
version = "5.2.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "23andMe";
repo = "yamale";
rev = "refs/tags/${version}";
hash = "sha256-iiiQAZ050FintRSV3l2zfikTNmphhJgrn+4tUHORiSk=";
};
build-system = [ setuptools ];
dependencies = [
pyyaml
ruamel-yaml
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "yamale" ];
meta = with lib; {
description = "Schema and validator for YAML";
homepage = "https://github.com/23andMe/Yamale";
changelog = "https://github.com/23andMe/Yamale/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ rtburns-jpl ];
mainProgram = "yamale";
};
}