567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
889 B
Nix
44 lines
889 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cerberus";
|
|
version = "1.3.8";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyeve";
|
|
repo = "cerberus";
|
|
tag = version;
|
|
hash = "sha256-C7YZjqQtdkakqHXBU3cFUl/gCFvCl3saP14eqt2fdAM=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cerberus" ];
|
|
|
|
disabledTestPaths = [
|
|
# We don't care about benchmarks
|
|
"cerberus/benchmarks/"
|
|
];
|
|
|
|
meta = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|