depot/third_party/nixpkgs/pkgs/development/python-modules/yamale/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

43 lines
752 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;
sha256 = "sha256-1GFvgfy3MDsJGKSEm0yaQoLM7VqIS2wphw16trNTUOc=";
};
propagatedBuildInputs = [
pyyaml
ruamel-yaml
];
checkInputs = [
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 ];
};
}