2020-10-19 09:53:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-08-23 08:02:39 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
2020-10-19 09:53:12 +00:00
|
|
|
, pyyaml
|
2021-12-06 16:07:01 +00:00
|
|
|
, ruamel-yaml
|
2020-10-19 09:53:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yamale";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "4.0.2";
|
|
|
|
format = "setuptools";
|
2020-10-19 09:53:12 +00:00
|
|
|
|
2021-08-23 08:02:39 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-10-19 09:53:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "23andMe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-hFBU3o3HpL0Schgzcx3oYq0IAUVGKThIfEteYcFbLnk=";
|
2020-10-19 09:53:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2020-10-19 09:53:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-08-23 08:02:39 +00:00
|
|
|
pytestCheckHook
|
2020-10-19 09:53:12 +00:00
|
|
|
];
|
2021-08-23 08:02:39 +00:00
|
|
|
|
2021-12-06 16:07:01 +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 ];
|
|
|
|
};
|
|
|
|
}
|