depot/third_party/nixpkgs/pkgs/development/python-modules/yamale/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

43 lines
756 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pyyaml
, ruamel-yaml
}:
buildPythonPackage rec {
pname = "yamale";
version = "4.0.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "23andMe";
repo = pname;
rev = version;
hash = "sha256-1GFvgfy3MDsJGKSEm0yaQoLM7VqIS2wphw16trNTUOc=";
};
propagatedBuildInputs = [
pyyaml
ruamel-yaml
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"yamale"
];
meta = with lib; {
description = "A schema and validator for YAML";
homepage = "https://github.com/23andMe/Yamale";
license = licenses.mit;
maintainers = with maintainers; [ rtburns-jpl ];
};
}