depot/third_party/nixpkgs/pkgs/development/python-modules/validators/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

40 lines
699 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, six
, decorator
, pytestCheckHook
, isort
, flake8
}:
buildPythonPackage rec {
pname = "validators";
version = "0.15.0";
src = fetchPypi {
inherit pname version;
sha256 = "31e8bb01b48b48940a021b8a9576b840f98fa06b91762ef921d02cb96d38727a";
};
propagatedBuildInputs = [
six
decorator
];
checkInputs = [
pytestCheckHook
flake8
isort
];
disabledTests = lib.optionals isPy27 [ "url" ];
meta = with lib; {
description = "Python Data Validation for Humans";
homepage = "https://github.com/kvesteri/validators";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}