depot/third_party/nixpkgs/pkgs/development/python-modules/huum/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

53 lines
995 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, mashumaro
, poetry-core
, pydantic
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "huum";
version = "0.7.9";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "frwickst";
repo = "pyhuum";
rev = "refs/tags/${version}";
hash = "sha256-wIroT1eMO9VXsPWQkpSBEVN/nR4pg2/Eo4ms81qMaew=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
mashumaro
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"huum"
];
meta = with lib; {
description = "Library for Huum saunas";
homepage = "https://github.com/frwickst/pyhuum";
changelog = "https://github.com/frwickst/pyhuum/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
broken = versionAtLeast pydantic.version "2";
};
}