depot/third_party/nixpkgs/pkgs/development/python-modules/aiortm/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

60 lines
1.1 KiB
Nix

{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, click
, fetchFromGitHub
, pydantic
, poetry-core
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "aiortm";
version = "0.6.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = pname;
rev = "v${version}";
hash = "sha256-OOmcJB1o0cmAFj1n2obr0lxZxT5fYs2awftHQ6VMLUs=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
click
pydantic
yarl
];
nativeCheckInputs = [
aioresponses
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=aiortm --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"aiortm"
];
meta = with lib; {
description = "Library for the Remember the Milk API";
homepage = "https://github.com/MartinHjelmare/aiortm";
changelog = "https://github.com/MartinHjelmare/aiortm/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}