a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, awesomeversion
|
|
, backoff
|
|
, buildPythonPackage
|
|
, deepmerge
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, yarl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyipp";
|
|
version = "0.12.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ctalkington";
|
|
repo = "python-ipp";
|
|
rev = version;
|
|
hash = "sha256-xTSi5Eh6vVuQ+Kr/oVMlh5YcckVRsfTUgdmGHndmX+Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
awesomeversion
|
|
backoff
|
|
deepmerge
|
|
yarl
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'version = "0.0.0"' 'version = "${version}"' \
|
|
--replace " --cov" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pyipp"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Asynchronous Python client for Internet Printing Protocol (IPP)";
|
|
homepage = "https://github.com/ctalkington/python-ipp";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|