Files
nixpkgs/pkgs/development/python-modules/validators/default.nix
T

41 lines
699 B
Nix
Raw Normal View History

2019-07-12 23:35:21 -04:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
2019-07-12 23:35:21 -04:00
, six
, decorator
, pytestCheckHook
2019-07-12 23:35:21 -04:00
, isort
, flake8
}:
buildPythonPackage rec {
pname = "validators";
2020-06-06 08:47:36 +02:00
version = "0.15.0";
2019-07-12 23:35:21 -04:00
src = fetchPypi {
inherit pname version;
2020-06-06 08:47:36 +02:00
sha256 = "31e8bb01b48b48940a021b8a9576b840f98fa06b91762ef921d02cb96d38727a";
2019-07-12 23:35:21 -04:00
};
propagatedBuildInputs = [
six
decorator
];
checkInputs = [
pytestCheckHook
2019-07-12 23:35:21 -04:00
flake8
isort
];
disabledTests = lib.optionals isPy27 [ "url" ];
2019-07-12 23:35:21 -04:00
meta = with lib; {
description = "Python Data Validation for Humans";
homepage = "https://github.com/kvesteri/validators";
2019-07-12 23:35:21 -04:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}