python311Packages.joserfc: init at 0.9.0

This commit is contained in:
Martin Weinelt
2024-03-12 18:25:10 +01:00
parent 7bfbcf402f
commit 64c165b0fb
2 changed files with 59 additions and 0 deletions
@@ -0,0 +1,57 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# dependencies
, cryptography
, pycryptodome
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "joserfc";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "authlib";
repo = "joserfc";
rev = version;
hash = "sha256-+NFCveMPzE0hSs2Qe20/MDHApXVtU3cR/GPFKPqfVV4=";
};
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 = with maintainers; [ ];
};
}
+2
View File
@@ -5961,6 +5961,8 @@ self: super: with self; {
josepy = callPackage ../development/python-modules/josepy { };
joserfc = callPackage ../development/python-modules/joserfc { };
journalwatch = callPackage ../tools/system/journalwatch {
inherit (self) systemd pytest;
};