2019-07-13 04:35:21 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, decorator
|
|
|
|
, pytest
|
|
|
|
, isort
|
|
|
|
, flake8
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "validators";
|
2019-09-28 23:51:14 +01:00
|
|
|
version = "0.14.0";
|
2019-07-13 04:35:21 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 23:51:14 +01:00
|
|
|
sha256 = "1bhla1l8gbks572zp4f254acz23822dz2mp122djxvp328i87b7h";
|
2019-07-13 04:35:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
decorator
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
flake8
|
|
|
|
isort
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Data Validation for Humans™";
|
|
|
|
homepage = https://github.com/kvesteri/validators;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|