mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
44 lines
752 B
Nix
44 lines
752 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, pyyaml
|
|
, ruamel-yaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yamale";
|
|
version = "4.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "23andMe";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-hFBU3o3HpL0Schgzcx3oYq0IAUVGKThIfEteYcFbLnk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
ruamel-yaml
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"yamale"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A schema and validator for YAML";
|
|
homepage = "https://github.com/23andMe/Yamale";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ rtburns-jpl ];
|
|
};
|
|
}
|