mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
Merge pull request #330881 from jokatzke/add-discum
python3Packages.discum: init at 1.4.1
This commit is contained in:
commit
36e179fb99
62
pkgs/development/python-modules/discum/default.nix
Normal file
62
pkgs/development/python-modules/discum/default.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
pythonRelaxDepsHook,
|
||||
brotli,
|
||||
colorama,
|
||||
filetype,
|
||||
requests,
|
||||
requests-toolbelt,
|
||||
ua-parser,
|
||||
websocket-client,
|
||||
pycryptodome,
|
||||
pypng,
|
||||
pyqrcode,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "discum";
|
||||
version = "1.4.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-/8TaAmfSPv/7kuymockSvC2uxXgHfuP+FXN8vuA9WHY=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
|
||||
dependencies = [
|
||||
brotli
|
||||
colorama
|
||||
filetype
|
||||
requests
|
||||
requests-toolbelt
|
||||
ua-parser
|
||||
websocket-client
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
ra = [
|
||||
pycryptodome
|
||||
pypng
|
||||
pyqrcode
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "discum" ];
|
||||
|
||||
pythonRelaxDeps = [ "websocket-client" ];
|
||||
|
||||
meta = {
|
||||
description = "Discord API Wrapper for Userbots/Selfbots written in Python";
|
||||
homepage = "https://pypi.org/project/discum/";
|
||||
changelog = "https://github.com/Merubokkusu/Discord-S.C.U.M/blob/v${version}/changelog.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ jokatzke ];
|
||||
};
|
||||
}
|
@ -3125,6 +3125,8 @@ self: super: with self; {
|
||||
|
||||
discovery30303 = callPackage ../development/python-modules/discovery30303 { };
|
||||
|
||||
discum = callPackage ../development/python-modules/discum { };
|
||||
|
||||
diskcache = callPackage ../development/python-modules/diskcache { };
|
||||
|
||||
dissect = callPackage ../development/python-modules/dissect { };
|
||||
|
Loading…
Reference in New Issue
Block a user