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.17.1";
15 disabled = isPy27;
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "401cb441dd61bb1a03b10c8a3a884642409e22a2a19e03bbfc4891e0ddbc7268";
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}