depot/third_party/nixpkgs/pkgs/development/python-modules/validators/default.nix

38 lines
853 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "validators";
version = "0.28.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "python-validators";
repo = "validators";
rev = "refs/tags/${version}";
hash = "sha256-r3SQvt96y8e9odWxz0GjVKH3+Pa0Lqs+tbhryeGaZUU=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "validators" ];
meta = with lib; {
description = "Python Data Validation for Humans";
homepage = "https://github.com/python-validators/validators";
changelog = "https://github.com/python-validators/validators/blob/${version}/CHANGES.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}