mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
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:
parent
4bb701de1c
commit
cfd1870ff9
@ -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 = [ ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user