mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Create Nix package expressions (#1246)
This commit is contained in:
27
nix/telethon/devel.nix
Normal file
27
nix/telethon/devel.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, nix-gitignore, pythonOlder
|
||||
, async_generator, pyaes, rsa
|
||||
}:
|
||||
|
||||
let
|
||||
common = import ./common.nix { inherit lib; };
|
||||
in buildPythonPackage rec {
|
||||
pname = "telethon";
|
||||
# If pinning to a specific commit, use the following output instead:
|
||||
# ```sh
|
||||
# TZ=UTC git show -s --format=format:%cd --date=short-local
|
||||
# ```
|
||||
version = "HEAD";
|
||||
|
||||
src = nix-gitignore.gitignoreSource ''
|
||||
/.git
|
||||
/default.nix
|
||||
/nix
|
||||
'' ../..;
|
||||
|
||||
propagatedBuildInputs = [ async_generator rsa pyaes ];
|
||||
|
||||
doCheck = false; # No tests available
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
meta = common.meta;
|
||||
}
|
Reference in New Issue
Block a user