depot/third_party/nixpkgs/pkgs/development/python-modules/toonapi/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

44 lines
868 B
Nix

{ lib
, aiohttp
, backoff
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "toonapi";
version = "0.3.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-toonapi";
rev = "refs/tags/v${version}";
hash = "sha256-RaN9ppqJbTik1/vNX0/YLoBawrqjyQWU6+FLTspIxug=";
};
propagatedBuildInputs = [
aiohttp
backoff
yarl
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"toonapi"
];
meta = with lib; {
description = "Python client for the Quby ToonAPI";
homepage = "https://github.com/frenck/python-toonapi";
changelog = "https://github.com/frenck/python-toonapi/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}