python311Packages.validators: 0.20.0 -> 0.21.1

Changelog: https://github.com/python-validators/validators/releases/tag/0.21.1
This commit is contained in:
Fabian Affolter 2023-06-15 08:24:22 +02:00 committed by Martin Weinelt
parent 4bb701de1c
commit cfd1870ff9

View File

@ -1,34 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, decorator
, six
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "validators";
version = "0.20.0";
disabled = isPy27;
version = "0.21.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-JBSM5OZBAKLV4mcjPiPnr+tVMWtH0w+q5+tucpK8Imo=";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "python-validators";
repo = "validators";
rev = "refs/tags/${version}";
hash = "sha256-b5K1WP+cEAjPBXu9sAZQf1J5H7PLnn94400Zd/0Y9ew=";
};
propagatedBuildInputs = [
decorator
six
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"validators"
];
meta = with lib; {
description = "Python Data Validation for Humans";
description = "Python Data Validation for Humans";
homepage = "https://github.com/kvesteri/validators";
changelog = "https://github.com/python-validators/validators/blob/${version}/CHANGES.md";
license = licenses.bsd3;
maintainers = [ ];
};