1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 simplejson, 7 jsonschema, 8 pyfakefs, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "validator-collection"; 15 version = "1.5.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "insightindustry"; 22 repo = "validator-collection"; 23 tag = "v.${version}"; 24 hash = "sha256-CDPfIkZZRpl1rAzNpLKJfaBEGWUl71coic2jOHIgi6o="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 # listed in setup.py, the requirements.txt is _full_ of dev junk 30 dependencies = [ 31 jsonschema 32 simplejson # optional but preferred 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pyfakefs 38 ]; 39 40 pythonImportsCheck = [ "validator_collection" ]; 41 42 disabledTests = [ 43 # Issues with fake filesystem /var/data 44 "test_writeable" 45 "test_executable" 46 "test_readable" 47 "test_is_readable" 48 ]; 49 50 meta = with lib; { 51 description = "Python library of 60+ commonly-used validator functions"; 52 homepage = "https://github.com/insightindustry/validator-collection/"; 53 changelog = "https://github.com/insightindustry/validator-collection/blob/${src.rev}/CHANGES.rst"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}