2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pysimplesoap,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-debianbts";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "4.0.2";
|
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-JbPb0lZND96XLZNU97wMuT9iGNXVN2KTsZC2St6FfuU=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/--cov/d" pyproject.toml
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pysimplesoap ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# Most tests require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "debianbts" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to Debian's Bug Tracking System";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "debianbts";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/venthur/python-debianbts";
|
|
|
|
downloadPage = "https://pypi.org/project/python-debianbts/";
|
|
|
|
changelog = "https://github.com/venthur/python-debianbts/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ nicoo ];
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}
|