Files
nixpkgs/pkgs/development/python-modules/joserfc/default.nix
T
2025-01-27 10:55:48 +01:00

48 lines
881 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
cryptography,
pycryptodome,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "joserfc";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "authlib";
repo = "joserfc";
tag = version;
hash = "sha256-e7c1reeAo+3dyNuDRXPlzxOwWQbAcHe+bSRVlvSW2rw=";
};
build-system = [ setuptools ];
dependencies = [ cryptography ];
optional-dependencies = {
drafts = [ pycryptodome ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "joserfc" ];
meta = with lib; {
description = "Implementations of JOSE RFCs in Python";
homepage = "https://github.com/authlib/joserfc";
license = licenses.bsd3;
maintainers = [ ];
};
}