
Diff: https://github.com/pyeve/cerberus/compare/refs/tags/1.3.6...1.3.7 Changelog: https://github.com/pyeve/cerberus/blob/1.3.7/CHANGES.rst
47 lines
939 B
Nix
47 lines
939 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cerberus";
|
|
version = "1.3.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyeve";
|
|
repo = "cerberus";
|
|
tag = version;
|
|
hash = "sha256-KYZpd8adKXahSc/amQHZMFdJtEtZLklZZgwfkYu8/qY=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cerberus" ];
|
|
|
|
disabledTestPaths = [
|
|
# We don't care about benchmarks
|
|
"cerberus/benchmarks/"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Schema and data validation tool for Python dictionaries";
|
|
homepage = "http://python-cerberus.org/";
|
|
changelog = "https://github.com/pyeve/cerberus/blob/${version}/CHANGES.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|