nixpkgs/pkgs/development/python-modules/yamale/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
756 B
Nix
Raw Normal View History

2020-10-20 21:33:06 +02:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
2020-10-20 21:33:06 +02:00
, pyyaml
, 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
disabled = pythonOlder "3.6";
2020-10-20 21:33:06 +02:00
src = fetchFromGitHub {
owner = "23andMe";
repo = pname;
rev = version;
hash = "sha256-1GFvgfy3MDsJGKSEm0yaQoLM7VqIS2wphw16trNTUOc=";
2020-10-20 21:33:06 +02:00
};
propagatedBuildInputs = [
pyyaml
ruamel-yaml
2020-10-20 21:33:06 +02:00
];
nativeCheckInputs = [
pytestCheckHook
2020-10-20 21:33:06 +02:00
];
2021-11-09 17:51:04 +01:00
pythonImportsCheck = [
"yamale"
];
2020-10-20 21:33:06 +02:00
meta = with lib; {
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 ];
};
}