depot/third_party/nixpkgs/pkgs/development/python-modules/aiotankerkoenig/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

61 lines
1.2 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
mashumaro,
orjson,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
buildPythonPackage rec {
pname = "aiotankerkoenig";
version = "0.4.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "jpbede";
repo = "aiotankerkoenig";
rev = "refs/tags/v${version}";
hash = "sha256-WRR4CLVkHN1JR4rwNu0ULoiu0zO0M2YdvCHYp0Tt9VU=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov" ""
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
mashumaro
orjson
yarl
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "aiotankerkoenig" ];
meta = with lib; {
description = "Python module for interacting with tankerkoenig.de";
homepage = "https://github.com/jpbede/aiotankerkoenig";
changelog = "https://github.com/jpbede/aiotankerkoenig/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}