2020-10-19 09:53:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, pytest
|
|
|
|
, pyyaml
|
|
|
|
, ruamel_yaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yamale";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "3.0.8";
|
2020-10-19 09:53:12 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "23andMe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "0bn0himn5fwndaxn205s55bdc4np7lhd940i0lkv0m7ybhbw7dap";
|
2020-10-19 09:53:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
ruamel_yaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-08-22 07:53:02 +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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rtburns-jpl ];
|
|
|
|
};
|
|
|
|
}
|