2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
2022-10-21 18:38:19 +00:00
|
|
|
, awesomeversion
|
|
|
|
, backoff
|
2021-01-15 22:18:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, deepmerge
|
|
|
|
, fetchFromGitHub
|
2022-10-21 18:38:19 +00:00
|
|
|
, poetry-core
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
, yarl
|
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyipp";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.14.3";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ctalkington";
|
|
|
|
repo = "python-ipp";
|
|
|
|
rev = version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-WbrAvIdFUPzSxGjIPzNny0V1W8S774vyREgylenJp24=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'version = "0.0.0"' 'version = "${version}"' \
|
|
|
|
--replace "--cov" ""
|
|
|
|
'';
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-10-21 18:38:19 +00:00
|
|
|
awesomeversion
|
|
|
|
backoff
|
2020-08-20 17:08:02 +00:00
|
|
|
deepmerge
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
2021-01-15 22:18:51 +00:00
|
|
|
pytestCheckHook
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyipp"
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/ctalkington/python-ipp/releases/tag/${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Asynchronous Python client for Internet Printing Protocol (IPP)";
|
|
|
|
homepage = "https://github.com/ctalkington/python-ipp";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|