Files
nixpkgs/pkgs/development/python-modules/joserfc/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

48 lines
897 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
cryptography,
pycryptodome,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "joserfc";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "authlib";
repo = "joserfc";
rev = "refs/tags/${version}";
hash = "sha256-mnJzhkdX0+5Y/XwGlHgxLP0me8Cs/Cl3p46KgTKw2ug=";
};
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 = [ ];
};
}