1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pydantic 5, setuptools 6, setuptools-scm 7}: 8 9buildPythonPackage rec { 10 pname = "pydantic-scim"; 11 version = "0.0.8"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "chalk-ai"; 16 repo = "pydantic-scim"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-Hbc94v/+slXRGDKKbMui8WPwn28/1XcKvHkbLebWtj0="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools 23 setuptools-scm 24 ]; 25 26 SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 postPatch = '' 29 substituteInPlace setup.py \ 30 --replace 'version=get_version(),' 'version="${version}",' 31 ''; 32 33 propagatedBuildInputs = [ 34 pydantic 35 ] ++ pydantic.optional-dependencies.email; 36 37 pythonImportsCheck = [ 38 "pydanticscim" 39 ]; 40 41 # no tests 42 doCheck = false; 43 44 meta = with lib; { 45 description = "Pydantic types for SCIM"; 46 homepage = "https://github.com/chalk-ai/pydantic-scim"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ hexa ]; 49 }; 50}