1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchPypi,
6 kitchen,
7 lockfile,
8 munch,
9 nose,
10 openidc-client,
11 pytestCheckHook,
12 pythonOlder,
13 requests,
14 setuptools,
15 six,
16 urllib3,
17}:
18
19buildPythonPackage rec {
20 pname = "python-fedora";
21 version = "1.1.1";
22 pyproject = true;
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-VrnYQaObQDDjiOkMe3fazUefHOXi/5sYw5VNl9Vwmhk=";
29 };
30
31 nativeBuildInputs = [ setuptools ];
32
33 propagatedBuildInputs = [
34 beautifulsoup4
35 kitchen
36 lockfile
37 munch
38 openidc-client
39 requests
40 six
41 urllib3
42 ];
43
44 nativeCheckInputs = [
45 pytestCheckHook
46 nose
47 ];
48
49 disabledTestPaths = [
50 # requires network access
51 "tests/functional/test_openidbaseclient.py"
52 ];
53
54 pythonImportsCheck = [ "fedora" ];
55
56 meta = with lib; {
57 description = "Module to interact with the infrastructure of the Fedora Project";
58 homepage = "https://github.com/fedora-infra/python-fedora";
59 changelog = "https://github.com/fedora-infra/python-fedora/releases/tag/${version}";
60 license = licenses.lgpl21Plus;
61 maintainers = with maintainers; [ ];
62 };
63}