Merge pull request #310898 from TomaSajt/pyfxa-deps

python312Packages.{hawkauthlib,pybrowserid}: fix tests, refactor; python312Packages.pyfxa: use pyproject = true

authored by Leona Maroni and committed by GitHub 2eb15b41 832e6a69

+60 -19
+27 -10
pkgs/development/python-modules/hawkauthlib/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , requests 5 - , webob 6 }: 7 8 buildPythonPackage rec { 9 pname = "hawkauthlib"; 10 version = "0.1.1"; 11 - format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "mozilla-services"; 15 - repo = pname; 16 rev = "refs/tags/v${version}"; 17 - sha256 = "0mr1mpx4j9q7sch9arwfvpysnpf2p7ijy7072wilxm8pnj0bwvsi"; 18 }; 19 20 - propagatedBuildInputs = [ requests webob ]; 21 22 meta = with lib; { 23 homepage = "https://github.com/mozilla-services/hawkauthlib"; 24 description = "Hawk Access Authentication protocol"; 25 license = licenses.mpl20; 26 }; 27 - 28 }
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + setuptools, 6 + requests, 7 + webob, 8 + unittestCheckHook, 9 }: 10 11 buildPythonPackage rec { 12 pname = "hawkauthlib"; 13 version = "0.1.1"; 14 + pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "mozilla-services"; 18 + repo = "hawkauthlib"; 19 rev = "refs/tags/v${version}"; 20 + hash = "sha256-UW++gLQX1U4jFwccL+O5wl2r/d2OZ5Ug0wcnSfqtIVc="; 21 }; 22 23 + postPatch = '' 24 + substituteInPlace hawkauthlib/tests/* \ 25 + --replace-warn 'assertEquals' 'assertEqual' 26 + ''; 27 + 28 + build-system = [ setuptools ]; 29 + 30 + dependencies = [ 31 + requests 32 + webob 33 + ]; 34 + 35 + pythonImportsCheck = [ "hawkauthlib" ]; 36 + 37 + nativeCheckInputs = [ unittestCheckHook ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/mozilla-services/hawkauthlib"; 41 description = "Hawk Access Authentication protocol"; 42 license = licenses.mpl20; 43 + maintainers = with maintainers; [ ]; 44 }; 45 }
+27 -7
pkgs/development/python-modules/pybrowserid/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi 2 - , requests, mock }: 3 4 buildPythonPackage rec { 5 pname = "pybrowserid"; 6 version = "0.14.0"; 7 8 src = fetchPypi { 9 pname = "PyBrowserID"; 10 inherit version; 11 - sha256 = "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"; 12 }; 13 14 - propagatedBuildInputs = [ requests ]; 15 16 - nativeCheckInputs = [ mock ]; 17 18 meta = with lib; { 19 description = "Python library for the BrowserID Protocol"; 20 - homepage = "https://github.com/mozilla/PyBrowserID"; 21 - license = licenses.mpl20; 22 maintainers = with maintainers; [ ]; 23 }; 24 }
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchPypi, 5 + setuptools, 6 + requests, 7 + unittestCheckHook, 8 + mock, 9 + }: 10 11 buildPythonPackage rec { 12 pname = "pybrowserid"; 13 version = "0.14.0"; 14 + pyproject = true; 15 16 src = fetchPypi { 17 pname = "PyBrowserID"; 18 inherit version; 19 + hash = "sha256-bCJ2aeh8wleWrnb2oO9lAlUoyK2C01Jnn6mj5WY6ceM="; 20 }; 21 22 + postPatch = '' 23 + substituteInPlace browserid/tests/* \ 24 + --replace-warn 'assertEquals' 'assertEqual' 25 + ''; 26 27 + build-system = [ setuptools ]; 28 + 29 + dependencies = [ requests ]; 30 + 31 + pythonImportsCheck = [ "browserid" ]; 32 + 33 + nativeCheckInputs = [ 34 + unittestCheckHook 35 + mock 36 + ]; 37 38 meta = with lib; { 39 description = "Python library for the BrowserID Protocol"; 40 + homepage = "https://github.com/mozilla/PyBrowserID"; 41 + license = licenses.mpl20; 42 maintainers = with maintainers; [ ]; 43 }; 44 }
+6 -2
pkgs/development/python-modules/pyfxa/default.nix
··· 18 buildPythonPackage rec { 19 pname = "pyfxa"; 20 version = "0.7.8"; 21 - format = "setuptools"; 22 23 disabled = pythonOlder "3.7"; 24 ··· 28 hash = "sha256-DMFZl1hbYNaScOTWkAbK2nKti6wD5SS5A30q7TW5vO4="; 29 }; 30 31 - propagatedBuildInputs = [ 32 cryptography 33 hawkauthlib 34 pybrowserid
··· 18 buildPythonPackage rec { 19 pname = "pyfxa"; 20 version = "0.7.8"; 21 + pyproject = true; 22 23 disabled = pythonOlder "3.7"; 24 ··· 28 hash = "sha256-DMFZl1hbYNaScOTWkAbK2nKti6wD5SS5A30q7TW5vO4="; 29 }; 30 31 + build-system = [ 32 + setuptools 33 + ]; 34 + 35 + dependencies = [ 36 cryptography 37 hawkauthlib 38 pybrowserid