2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
|
|
|
ruamel-yaml,
|
|
|
|
setuptools,
|
2020-10-19 09:53:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yamale";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "5.2.1";
|
|
|
|
pyproject = true;
|
2020-10-19 09:53:12 +00:00
|
|
|
|
2021-08-23 08:02:39 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-10-19 09:53:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "23andMe";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "yamale";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-iiiQAZ050FintRSV3l2zfikTNmphhJgrn+4tUHORiSk=";
|
2020-10-19 09:53:12 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2020-10-19 09:53:12 +00:00
|
|
|
pyyaml
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2020-10-19 09:53:12 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-08-23 08:02:39 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "yamale" ];
|
2020-10-19 09:53:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-27 00:29:36 +00:00
|
|
|
description = "A schema and validator for YAML";
|
2020-10-19 09:53:12 +00:00
|
|
|
homepage = "https://github.com/23andMe/Yamale";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/23andMe/Yamale/releases/tag/${version}";
|
2020-10-19 09:53:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rtburns-jpl ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "yamale";
|
2020-10-19 09:53:12 +00:00
|
|
|
};
|
|
|
|
}
|