nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 uv-build, 6 pydantic, 7 pytestCheckHook, 8}: 9 10buildPythonPackage (finalAttrs: { 11 pname = "scim2-models"; 12 version = "0.5.1"; 13 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "python-scim"; 18 repo = "scim2-models"; 19 tag = finalAttrs.version; 20 hash = "sha256-ahwHmWsM9IoK+yq0Qd0c2+kagMlXGi80/rAB4UQsf6U="; 21 }; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace-fail "uv_build>=0.8.9,<0.9.0" "uv_build" 26 ''; 27 28 build-system = [ uv-build ]; 29 30 dependencies = [ pydantic ] ++ pydantic.optional-dependencies.email; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "scim2_models" ]; 35 36 meta = { 37 description = "SCIM2 models serialization and validation with pydantic"; 38 homepage = "https://github.com/python-scim/scim2-models"; 39 changelog = "https://github.com/python-scim/scim2-models/releases/tag/${finalAttrs.version}"; 40 license = lib.licenses.asl20; 41 maintainers = with lib.maintainers; [ erictapen ]; 42 }; 43})