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