-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
43 lines (40 loc) · 946 Bytes
/
default.nix
File metadata and controls
43 lines (40 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# tutorial: https://blog.stigok.com/2019/11/05/packing-python-script-binary-nicely-in-nixos.html
# reference: https://nixos.org/manual/nixpkgs/stable/#buildpythonpackage-function
{
fetchFromGitHub,
python3,
fetchPypi,
# , python3Packages
}:
python3.pkgs.buildPythonPackage rec {
pname = "auto-profile-tg";
version = "0.0.1";
format = "pyproject";
src = ./.;
# src = fetchFromGitHub {
# owner = "bahrom04";
# repo = "auto-profile-tg";
# rev = "master";
# sha256 = "sha256-xzJJIagAG2JHjZdbOLNGmfd2uJDIuD5PwmeogoRKHvM=";
# };
propagatedBuildInputs = with python3.pkgs; [
pip
APScheduler
loguru
python-dotenv
pytz
requests
tenacity
telethon
setuptools
];
nativeBuildInputs = with python3.pkgs;[
poetry-core
flit-core
];
# No tests
doCheck = false;
meta = {
description = "auto-profile adds real-time clock to your telegram profile username";
};
}