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";
|
2022-03-23 03:32:28 +01:00
|
|
|
version = "4.0.4";
|
2021-11-09 17:51:04 +01:00
|
|
|
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;
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-1GFvgfy3MDsJGKSEm0yaQoLM7VqIS2wphw16trNTUOc=";
|
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
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
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 ];
|
|
|
|
};
|
|
|
|
}
|