nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 968 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 eth-hash, 5 fetchFromGitHub, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "validators"; 12 version = "0.35.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "python-validators"; 17 repo = "validators"; 18 tag = version; 19 hash = "sha256-b3kjKbqmfny6YnU0rlrralTgvYT06sUpckI4EDKDleA="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 optional-dependencies = { 25 crypto-eth-addresses = [ eth-hash ] ++ eth-hash.optional-dependencies.pycryptodome; 26 }; 27 28 nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies; 29 30 pythonImportsCheck = [ "validators" ]; 31 32 meta = { 33 description = "Python Data Validation for Humans"; 34 homepage = "https://github.com/python-validators/validators"; 35 changelog = "https://github.com/python-validators/validators/blob/${version}/CHANGES.md"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ fab ]; 38 }; 39}