Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
970 B · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies cryptography, pycryptodome,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "joserfc"; version = "1.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "authlib"; repo = "joserfc"; tag = version; hash = "sha256-95xtUzzIxxvDtpHX/5uCHnTQTB8Fc08DZGUOR/SdKLs="; };
build-system = [ setuptools ];
dependencies = [ cryptography ];
optional-dependencies = { drafts = [ pycryptodome ]; };
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "joserfc" ];
meta = with lib; { changelog = "https://github.com/authlib/joserfc/blob/${src.tag}/docs/changelog.rst"; description = "Implementations of JOSE RFCs in Python"; homepage = "https://github.com/authlib/joserfc"; license = licenses.bsd3; maintainers = [ ]; };}