2020-10-19 09:53:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, pytest
|
|
|
|
, pyyaml
|
|
|
|
, ruamel_yaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yamale";
|
|
|
|
version = "3.0.4";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "23andMe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1xjvah4r3gpwk4zxql3c9jpllb34k175fm6iq1zvsd2vv2fwf8s2";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
ruamel_yaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|