Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #267482 from natsukium/python-fedora

python311Packages.python-fedora: rename from python_fedora

authored by OTABI Tomoya and committed by GitHub ae03901e 4ce484e2

+20 -8
+18 -7
pkgs/development/python-modules/python_fedora/default.nix pkgs/development/python-modules/python-fedora/default.nix
··· 1 1 { lib 2 2 , beautifulsoup4 3 3 , buildPythonPackage 4 - , bunch 5 4 , fetchPypi 6 5 , kitchen 7 6 , lockfile 8 7 , munch 8 + , nose 9 9 , openidc-client 10 - , paver 10 + , pytestCheckHook 11 11 , pythonOlder 12 12 , requests 13 + , setuptools 13 14 , six 14 15 , urllib3 15 16 }: ··· 17 18 buildPythonPackage rec { 18 19 pname = "python-fedora"; 19 20 version = "1.1.1"; 20 - format = "setuptools"; 21 + pyproject = true; 21 22 22 23 disabled = pythonOlder "3.7"; 23 24 ··· 26 27 hash = "sha256-VrnYQaObQDDjiOkMe3fazUefHOXi/5sYw5VNl9Vwmhk="; 27 28 }; 28 29 30 + nativeBuildInputs = [ 31 + setuptools 32 + ]; 33 + 29 34 propagatedBuildInputs = [ 30 35 beautifulsoup4 31 - bunch 32 36 kitchen 33 37 lockfile 34 38 munch 35 39 openidc-client 36 - paver 37 40 requests 38 41 six 39 42 urllib3 40 43 ]; 41 44 42 - doCheck = false; 45 + nativeCheckInputs = [ 46 + pytestCheckHook 47 + nose 48 + ]; 49 + 50 + disabledTestPaths = [ 51 + # requires network access 52 + "tests/functional/test_openidbaseclient.py" 53 + ]; 43 54 44 55 pythonImportsCheck = [ 45 56 "fedora" ··· 48 59 meta = with lib; { 49 60 description = "Module to interact with the infrastructure of the Fedora Project"; 50 61 homepage = "https://github.com/fedora-infra/python-fedora"; 51 - changelog = "https://github.com/fedora-infra/python-fedora/releases/tag/1.1.1"; 62 + changelog = "https://github.com/fedora-infra/python-fedora/releases/tag/${version}"; 52 63 license = licenses.lgpl21Plus; 53 64 maintainers = with maintainers; [ ]; 54 65 };
+1
pkgs/top-level/python-aliases.nix
··· 350 350 python-forecastio = throw "python-forecastio has been removed, as the Dark Sky service was shut down."; # added 2023-04-05 351 351 python-igraph = igraph; # added 2021-11-11 352 352 python_docs_theme = python-docs-theme; # added 2023-11-04 353 + python_fedora = python-fedora; # added 2023-11-15 353 354 python_keyczar = throw "python_keyczar has been removed because it's been archived upstream and deprecated"; # added 2023-05-16 354 355 python-lz4 = lz4; # added 2018-06-01 355 356 python_magic = python-magic; # added 2022-05-07
+1 -1
pkgs/top-level/python-packages.nix
··· 11451 11451 11452 11452 python-ev3dev2 = callPackage ../development/python-modules/python-ev3dev2 { }; 11453 11453 11454 - python_fedora = callPackage ../development/python-modules/python_fedora { }; 11454 + python-fedora = callPackage ../development/python-modules/python-fedora { }; 11455 11455 11456 11456 python-fontconfig = callPackage ../development/python-modules/python-fontconfig { }; 11457 11457