1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 hatchling, 7 pydantic, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "scim2-models"; 13 version = "0.4.1"; 14 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchPypi { 20 inherit version; 21 pname = "scim2_models"; 22 hash = "sha256-SRUPO67otfZsrdjGQyTul5vIrYRU2WFaL0fvAtVd/1c="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 dependencies = [ pydantic ] ++ pydantic.optional-dependencies.email; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "scim2_models" ]; 32 33 meta = with lib; { 34 description = "SCIM2 models serialization and validation with pydantic"; 35 homepage = "https://github.com/python-scim/scim2-models"; 36 changelog = "https://github.com/python-scim/scim2-models/releases/tag/${version}"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ erictapen ]; 39 }; 40}