2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, kitchen
|
|
|
|
, lockfile
|
|
|
|
, munch
|
2024-01-02 11:29:13 +00:00
|
|
|
, nose
|
2023-02-02 18:25:31 +00:00
|
|
|
, openidc-client
|
2024-01-02 11:29:13 +00:00
|
|
|
, pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2023-02-02 18:25:31 +00:00
|
|
|
, six
|
|
|
|
, urllib3
|
|
|
|
}:
|
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-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# requires network access
|
|
|
|
"tests/functional/test_openidbaseclient.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fedora"
|
|
|
|
];
|
|
|
|
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|