1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, six
6, decorator
7, pytestCheckHook
8, isort
9, flake8
10}:
11
12buildPythonPackage rec {
13 pname = "validators";
14 version = "0.18.2";
15 disabled = isPy27;
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "37cd9a9213278538ad09b5b9f9134266e7c226ab1fede1d500e29e0a8fbb9ea6";
20 };
21
22 propagatedBuildInputs = [
23 six
24 decorator
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 flake8
30 isort
31 ];
32
33 disabledTests = lib.optionals isPy27 [ "url" ];
34
35 meta = with lib; {
36 description = "Python Data Validation for Humans™";
37 homepage = "https://github.com/kvesteri/validators";
38 license = licenses.bsd3;
39 maintainers = [ maintainers.costrouc ];
40 };
41}