2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
2024-01-02 11:29:13 +00:00
|
|
|
, glibcLocalesUtf8
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bugzilla";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.2.0";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "python-${pname}";
|
|
|
|
inherit version;
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "TvyM+il4N8nk6rIg4ZcXZxW9Ye4zzsLBsPJ5DweGA4c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
pytestCheckHook glibcLocalesUtf8
|
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
|
|
|
};
|
|
|
|
}
|