depot/third_party/nixpkgs/pkgs/development/python-modules/imgw-pib/default.nix

48 lines
934 B
Nix
Raw Normal View History

{
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 ];
};
}