nixpkgs/pkgs/development/python-modules/imgw-pib/default.nix
2024-10-08 23:51:35 +00:00

48 lines
934 B
Nix

{
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
freezegun,
lib,
pytest-asyncio,
pytestCheckHook,
setuptools,
syrupy,
}:
buildPythonPackage rec {
pname = "imgw-pib";
version = "1.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "bieniu";
repo = "imgw-pib";
rev = "refs/tags/${version}";
hash = "sha256-0ttGUsu00y/uuTXzPYkgh1QLMYOwPI/m8Qwk5Ty0Y3A=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "imgw_pib" ];
nativeCheckInputs = [
aioresponses
freezegun
pytest-asyncio
pytestCheckHook
syrupy
];
meta = {
changelog = "https://github.com/bieniu/imgw-pib/releases/tag/${version}";
description = "Python async wrapper for IMGW-PIB API";
homepage = "https://github.com/bieniu/imgw-pib";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}