15 # optional-dependencies
24 buildPythonPackage rec {
25 pname = "python-jose";
29 src = fetchFromGitHub {
33 hash = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM=";
38 name = "CVE-2024-33663.patch";
39 url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-python-jose/CVE-2024-33663.patch?rev=36cd8815411620042f56a3b81599b341";
40 hash = "sha256-uxOCa7Lg82zY2nuHzw6CbcymCKUodITrFU3lLY1XMFU=";
43 name = "CVE-2024-33664.patch";
44 url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-python-jose/CVE-2024-33664.patch?rev=36cd8815411620042f56a3b81599b341";
45 hash = "sha256-wx/U1T7t7TloP+dMXxGxEVB3bMC7e6epmN8RE8FKksM=";
50 substituteInPlace setup.py \
51 --replace '"pytest-runner",' ""
54 nativeBuildInputs = [ setuptools ];
56 propagatedBuildInputs = [
62 optional-dependencies = {
63 cryptography = [ cryptography ];
64 pycrypto = [ pycrypto ];
65 pycryptodome = [ pycryptodome ];
68 pythonImportsCheck = [ "jose" ];
72 ] ++ lib.flatten (lib.attrValues optional-dependencies);
75 # https://github.com/mpdavis/python-jose/issues/348
76 "TestBackendEcdsaCompatibility"
80 changelog = "https://github.com/mpdavis/python-jose/releases/tag/${version}";
81 homepage = "https://github.com/mpdavis/python-jose";
82 description = "JOSE implementation in Python";
83 license = licenses.mit;