2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-10-11 05:15:48 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests,
|
2024-10-11 05:15:48 +00:00
|
|
|
responses,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
glibcLocalesUtf8,
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-10-11 05:15:48 +00:00
|
|
|
pname = "python-bugzilla";
|
|
|
|
version = "3.3.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-10-11 05:15:48 +00:00
|
|
|
pname = "python_bugzilla";
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit version;
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-4YIgFx4DPrO6YAxNE5NZ0BqhrOwdrrxDCJEORQdj3kc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ requests ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook
|
|
|
|
glibcLocalesUtf8
|
2024-10-11 05:15:48 +00:00
|
|
|
responses
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preCheck = ''
|
|
|
|
mkdir -p check-phase
|
|
|
|
export HOME=$(pwd)/check-phase
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/python-bugzilla/python-bugzilla";
|
|
|
|
description = "Bugzilla XMLRPC access module";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bugzilla";
|
2022-12-02 08:20:57 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2021-10-17 02:12:59 +00:00
|
|
|
maintainers = with maintainers; [ pierron ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|