depot/third_party/nixpkgs/pkgs/development/python-modules/pydantic-scim/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
930 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pydantic,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pydantic-scim";
version = "0.0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "chalk-ai";
repo = "pydantic-scim";
rev = "refs/tags/v${version}";
hash = "sha256-Hbc94v/+slXRGDKKbMui8WPwn28/1XcKvHkbLebWtj0=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
postPatch = ''
substituteInPlace setup.py \
--replace 'version=get_version(),' 'version="${version}",'
'';
propagatedBuildInputs = [ pydantic ] ++ pydantic.optional-dependencies.email;
pythonImportsCheck = [ "pydanticscim" ];
# no tests
doCheck = false;
meta = with lib; {
description = "Pydantic types for SCIM";
homepage = "https://github.com/chalk-ai/pydantic-scim";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}