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

42 lines
720 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";
version = "0.18.1";
disabled = isPy27;
2019-07-12 23:35:21 -04:00
src = fetchPypi {
inherit pname version;
sha256 = "1a653b33c0ab091790f65f42b61aa191e354ed5fdedfeb17d24a86d0789966d7";
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 ];
};
}