2019-07-12 23:35:21 -04:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-12 13:31:50 -07:00
|
|
|
, isPy27
|
2019-07-12 23:35:21 -04:00
|
|
|
, decorator
|
2022-03-31 23:14:45 +02:00
|
|
|
, six
|
2020-06-12 13:31:50 -07:00
|
|
|
, pytestCheckHook
|
2019-07-12 23:35:21 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "validators";
|
2022-07-16 12:59:43 +02:00
|
|
|
version = "0.20.0";
|
2020-08-29 11:20:08 -07:00
|
|
|
disabled = isPy27;
|
2019-07-12 23:35:21 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-16 12:59:43 +02:00
|
|
|
sha256 = "sha256-JBSM5OZBAKLV4mcjPiPnr+tVMWtH0w+q5+tucpK8Imo=";
|
2019-07-12 23:35:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
decorator
|
2022-03-31 23:14:45 +02:00
|
|
|
six
|
2019-07-12 23:35:21 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2020-06-12 13:31:50 -07:00
|
|
|
pytestCheckHook
|
2019-07-12 23:35:21 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Data Validation for Humans™";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/kvesteri/validators";
|
2019-07-12 23:35:21 -04:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|