diff --git a/pkgs/development/python-modules/toonapi/default.nix b/pkgs/development/python-modules/toonapi/default.nix new file mode 100644 index 000000000000..003670989920 --- /dev/null +++ b/pkgs/development/python-modules/toonapi/default.nix @@ -0,0 +1,36 @@ +{ lib +, aiohttp +, backoff +, buildPythonPackage +, fetchFromGitHub +, yarl +}: + +buildPythonPackage rec { + pname = "toonapi"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "frenck"; + repo = "python-toonapi"; + rev = "v${version}"; + sha256 = "1d4n615vlcgkvmchrfjw4h3ndav3ljmcfydxr2b41zn83mzizqdf"; + }; + + 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"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb786ff781ef..6b5c028eb136 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7647,6 +7647,8 @@ in { else callPackage ../development/python-modules/toolz/2.nix { }; + toonapi = callPackage ../development/python-modules/toonapi { }; + toposort = callPackage ../development/python-modules/toposort { }; topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22