depot/third_party/nixpkgs/pkgs/development/python-modules/id/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
876 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pretend,
pydantic,
pytestCheckHook,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "id";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "di";
repo = "id";
rev = "refs/tags/v${version}";
hash = "sha256-lmUBy0hJAxfF65RcBP7tTizrg8j2Zypu4sKgOUQCYh8=";
};
build-system = [ flit-core ];
dependencies = [
pydantic
requests
];
nativeCheckInputs = [
pretend
pytestCheckHook
];
pythonImportsCheck = [ "id" ];
meta = with lib; {
description = "Tool for generating OIDC identities";
homepage = "https://github.com/di/id";
changelog = "https://github.com/di/id/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}