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