depot/third_party/nixpkgs/pkgs/development/python-modules/pyipp/default.nix
Default email eeb71630af Project import generated by Copybara.
GitOrigin-RevId: 636051e353461f073ac55d5d42c1ed062a345046
2022-11-02 23:02:43 +01:00

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
];
checkInputs = [
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 ];
};
}