Loading pkgs/development/python-modules/python-jose/default.nix +39 −13 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchFromGitHub # build-system , setuptools # dependencies , ecdsa , rsa , pycrypto , pyasn1 , pycryptodome # optional-dependencies , cryptography , pycrypto , pycryptodome # tests , pytestCheckHook }: buildPythonPackage rec { pname = "python-jose"; version = "3.3.0"; pyproject = true; src = fetchFromGitHub { owner = "mpdavis"; Loading @@ -21,27 +31,43 @@ buildPythonPackage rec { hash = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM="; }; postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner",' "" ''; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography ecdsa pyasn1 pycrypto pycryptodome rsa ]; nativeCheckInputs = [ pytestCheckHook passthru.optional-dependencies = { cryptography = [ cryptography ]; pycrypto = [ pycrypto ]; pycryptodome = [ pycryptodome ]; }; postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner",' "" ''; pythonImportsCheck = [ "jose" ]; pythonImportsCheck = [ "jose" ]; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); meta = with lib; { changelog = "https://github.com/mpdavis/python-jose/releases/tag/${version}"; homepage = "https://github.com/mpdavis/python-jose"; description = "A JOSE implementation in Python"; license = licenses.mit; Loading Loading
pkgs/development/python-modules/python-jose/default.nix +39 −13 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchFromGitHub # build-system , setuptools # dependencies , ecdsa , rsa , pycrypto , pyasn1 , pycryptodome # optional-dependencies , cryptography , pycrypto , pycryptodome # tests , pytestCheckHook }: buildPythonPackage rec { pname = "python-jose"; version = "3.3.0"; pyproject = true; src = fetchFromGitHub { owner = "mpdavis"; Loading @@ -21,27 +31,43 @@ buildPythonPackage rec { hash = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM="; }; postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner",' "" ''; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography ecdsa pyasn1 pycrypto pycryptodome rsa ]; nativeCheckInputs = [ pytestCheckHook passthru.optional-dependencies = { cryptography = [ cryptography ]; pycrypto = [ pycrypto ]; pycryptodome = [ pycryptodome ]; }; postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner",' "" ''; pythonImportsCheck = [ "jose" ]; pythonImportsCheck = [ "jose" ]; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); meta = with lib; { changelog = "https://github.com/mpdavis/python-jose/releases/tag/${version}"; homepage = "https://github.com/mpdavis/python-jose"; description = "A JOSE implementation in Python"; license = licenses.mit; Loading