Create Nix package expressions (#1246)

This commit is contained in:
bb010g
2019-07-30 06:31:53 -07:00
committed by Lonami
parent de85c34462
commit 13e9119573
14 changed files with 1503 additions and 8 deletions

27
nix/telethon/devel.nix Normal file
View 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;
}