2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
kitchen,
|
|
|
|
lockfile,
|
|
|
|
munch,
|
|
|
|
openidc-client,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
urllib3,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-fedora";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "1.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-VrnYQaObQDDjiOkMe3fazUefHOXi/5sYw5VNl9Vwmhk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
kitchen
|
|
|
|
lockfile
|
|
|
|
munch
|
|
|
|
openidc-client
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# requires network access
|
|
|
|
"tests/functional/test_openidbaseclient.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "fedora" ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "Module to interact with the infrastructure of the Fedora Project";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/fedora-infra/python-fedora";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/fedora-infra/python-fedora/releases/tag/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|