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-08-16 18:31:19 +01:00
|
|
|
version = "0.17.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-08-16 18:31:19 +01:00
|
|
|
sha256 = "401cb441dd61bb1a03b10c8a3a884642409e22a2a19e03bbfc4891e0ddbc7268";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|