mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 00:43:24 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
46 lines
908 B
Nix
46 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";
|
|
};
|
|
}
|