fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
46 lines
967 B
Nix
46 lines
967 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cerberus";
|
|
version = "1.3.5";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyeve";
|
|
repo = "cerberus";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-4sVNM4zHc9nsrntmJVdE9nm47CSF0UOJPPI9z3Z2YDc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|