lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python311Packages.python-fedora: refactor

- adopt pypa build
- remove unnecessary inputs
- enable tests
- fix meta.changelog

+18 -7
+18 -7
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 };