2019-07-13 03:35:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-12 20:31:50 +00:00
|
|
|
, isPy27
|
2019-07-13 03:35:21 +00:00
|
|
|
, six
|
|
|
|
, decorator
|
2020-06-12 20:31:50 +00:00
|
|
|
, pytestCheckHook
|
2019-07-13 03:35:21 +00:00
|
|
|
, isort
|
|
|
|
, flake8
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "validators";
|
2020-11-29 14:04:45 +00:00
|
|
|
version = "0.18.1";
|
2020-08-29 18:20:08 +00:00
|
|
|
disabled = isPy27;
|
2019-07-13 03:35:21 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:45 +00:00
|
|
|
sha256 = "1a653b33c0ab091790f65f42b61aa191e354ed5fdedfeb17d24a86d0789966d7";
|
2019-07-13 03:35:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
decorator
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2020-06-12 20:31:50 +00:00
|
|
|
pytestCheckHook
|
2019-07-13 03:35:21 +00:00
|
|
|
flake8
|
|
|
|
isort
|
|
|
|
];
|
|
|
|
|
2020-06-12 20:31:50 +00:00
|
|
|
disabledTests = lib.optionals isPy27 [ "url" ];
|
2019-07-13 03:35:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Data Validation for Humans™";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/kvesteri/validators";
|
2019-07-13 03:35:21 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|