python3Packages.pizzapi: init at 0.0.6 (#436626)

This commit is contained in:
Martin Weinelt
2025-08-28 21:11:59 +02:00
committed by GitHub
3 changed files with 56 additions and 1 deletions
@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
xmltodict,
pyhamcrest,
mock,
pytestCheckHook,
}:
buildPythonPackage {
pname = "pizzapi";
version = "0.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "ggrammar";
repo = "pizzapi";
rev = "2a67ceb0f6df285988f1a2d7b678bbd2526c26a4";
hash = "sha256-oBwNNsnRhm/kv8DxNrAKkeGv2RZA+RMdYRgByy3qmsU=";
};
postPatch = ''
# Remove pytest-runner from setup_requires
substituteInPlace setup.py \
--replace-fail 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
'';
build-system = [ setuptools ];
dependencies = [
requests
xmltodict
pyhamcrest
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "pizzapi" ];
meta = {
description = "Python wrapper for the Dominos Pizza API";
homepage = "https://github.com/ggrammar/pizzapi";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
@@ -1253,7 +1253,8 @@
];
"dominos" =
ps: with ps; [
]; # missing inputs: pizzapi
pizzapi
];
"doods" =
ps: with ps; [
pillow
+2
View File
@@ -11741,6 +11741,8 @@ self: super: with self; {
pixel-ring = callPackage ../development/python-modules/pixel-ring { };
pizzapi = callPackage ../development/python-modules/pizzapi { };
pjsua2 =
(toPythonModule (
pkgs.pjsip.override {