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