2020-10-20 21:33:06 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-08-22 09:22:25 +02:00
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
2020-10-20 21:33:06 +02:00
|
|
|
, pyyaml
|
2021-11-01 21:59:40 +01:00
|
|
|
, ruamel-yaml
|
2020-10-20 21:33:06 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yamale";
|
2021-11-09 17:51:04 +01:00
|
|
|
version = "4.0.2";
|
|
|
|
format = "setuptools";
|
2020-10-20 21:33:06 +02:00
|
|
|
|
2021-08-22 09:22:25 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-10-20 21:33:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "23andMe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-09 17:51:04 +01:00
|
|
|
sha256 = "sha256-hFBU3o3HpL0Schgzcx3oYq0IAUVGKThIfEteYcFbLnk=";
|
2020-10-20 21:33:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
2021-11-01 21:59:40 +01:00
|
|
|
ruamel-yaml
|
2020-10-20 21:33:06 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-08-22 09:22:25 +02:00
|
|
|
pytestCheckHook
|
2020-10-20 21:33:06 +02:00
|
|
|
];
|
2021-08-22 09:22:25 +02:00
|
|
|
|
2021-11-09 17:51:04 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yamale"
|
|
|
|
];
|
2020-10-20 21:33:06 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-25 14:13:18 +01:00
|
|
|
description = "A schema and validator for YAML";
|
2020-10-20 21:33:06 +02:00
|
|
|
homepage = "https://github.com/23andMe/Yamale";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rtburns-jpl ];
|
|
|
|
};
|
|
|
|
}
|