tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.aw-client: init at 0.5.11
huantian
2 years ago
58291dd0
91f97cae
+67
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
aw-client
default.nix
top-level
python-packages.nix
+65
pkgs/development/python-modules/aw-client/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pythonOlder
5
5
+
, poetry-core
6
6
+
, aw-core
7
7
+
, requests
8
8
+
, persist-queue
9
9
+
, click
10
10
+
, tabulate
11
11
+
, typing-extensions
12
12
+
, pytestCheckHook
13
13
+
}:
14
14
+
15
15
+
buildPythonPackage rec {
16
16
+
pname = "aw-client";
17
17
+
version = "0.5.11";
18
18
+
19
19
+
format = "pyproject";
20
20
+
21
21
+
# pypi distribution doesn't include tests, so build from source instead
22
22
+
src = fetchFromGitHub {
23
23
+
owner = "ActivityWatch";
24
24
+
repo = "aw-client";
25
25
+
rev = "v${version}";
26
26
+
sha256 = "sha256-5WKGRoZGY+QnnB1Jzlju5OmCJreYMD8am2kW3Wcjhlw=";
27
27
+
};
28
28
+
29
29
+
disabled = pythonOlder "3.8";
30
30
+
31
31
+
nativeBuildInputs = [
32
32
+
poetry-core
33
33
+
];
34
34
+
35
35
+
propagatedBuildInputs = [
36
36
+
aw-core
37
37
+
requests
38
38
+
persist-queue
39
39
+
click
40
40
+
tabulate
41
41
+
typing-extensions
42
42
+
];
43
43
+
44
44
+
nativeCheckInputs = [
45
45
+
pytestCheckHook
46
46
+
];
47
47
+
48
48
+
# Only run this test, the others are integration tests that require
49
49
+
# an instance of aw-server running in order to function.
50
50
+
pytestFlagsArray = [ "tests/test_requestqueue.py" ];
51
51
+
52
52
+
preCheck = ''
53
53
+
# Fake home folder for tests that write to $HOME
54
54
+
export HOME="$TMPDIR"
55
55
+
'';
56
56
+
57
57
+
pythonImportsCheck = [ "aw_client" ];
58
58
+
59
59
+
meta = with lib; {
60
60
+
description = "Client library for ActivityWatch";
61
61
+
homepage = "https://github.com/ActivityWatch/aw-client";
62
62
+
maintainers = with maintainers; [ huantian ];
63
63
+
license = licenses.mpl20;
64
64
+
};
65
65
+
}
+2
pkgs/top-level/python-packages.nix
···
847
847
848
848
avro-python3 = callPackage ../development/python-modules/avro-python3 { };
849
849
850
850
+
aw-client = callPackage ../development/python-modules/aw-client { };
851
851
+
850
852
aw-core = callPackage ../development/python-modules/aw-core { };
851
853
852
854
awacs = callPackage ../development/python-modules/awacs { };