41 lines
903 B
Nix
41 lines
903 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
hatchling,
|
|
pydantic,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scim2-models";
|
|
version = "0.3.5";
|
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "scim2_models";
|
|
hash = "sha256-nOLCYyyB7Si+KfwdWM7DCkDoaVEj/coUA//ZW3hKHuA=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ pydantic ] ++ pydantic.optional-dependencies.email;
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "scim2_models" ];
|
|
|
|
meta = with lib; {
|
|
description = "SCIM2 models serialization and validation with pydantic";
|
|
homepage = "https://github.com/python-scim/scim2-models";
|
|
changelog = "https://github.com/python-scim/scim2-models/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ erictapen ];
|
|
};
|
|
}
|