tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.aw-core: init at 0.5.12
huantian
2 years ago
91f97cae
d868a402
+71
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
aw-core
default.nix
top-level
python-packages.nix
+69
pkgs/development/python-modules/aw-core/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pythonOlder
5
5
+
, poetry-core
6
6
+
, jsonschema
7
7
+
, peewee
8
8
+
, appdirs
9
9
+
, iso8601
10
10
+
, rfc3339-validator
11
11
+
, takethetime
12
12
+
, strict-rfc3339
13
13
+
, tomlkit
14
14
+
, deprecation
15
15
+
, timeslot
16
16
+
, pytestCheckHook
17
17
+
}:
18
18
+
19
19
+
buildPythonPackage rec {
20
20
+
pname = "aw-core";
21
21
+
version = "0.5.12";
22
22
+
23
23
+
format = "pyproject";
24
24
+
25
25
+
# pypi distribution doesn't include tests, so build from source instead
26
26
+
src = fetchFromGitHub {
27
27
+
owner = "ActivityWatch";
28
28
+
repo = "aw-core";
29
29
+
rev = "v${version}";
30
30
+
sha256 = "sha256-DbugVMaQHlHpfbFEsM6kfpDL2VzRs0TDn9klWjAwz64=";
31
31
+
};
32
32
+
33
33
+
disabled = pythonOlder "3.8";
34
34
+
35
35
+
nativeBuildInputs = [
36
36
+
poetry-core
37
37
+
];
38
38
+
39
39
+
propagatedBuildInputs = [
40
40
+
jsonschema
41
41
+
peewee
42
42
+
appdirs
43
43
+
iso8601
44
44
+
rfc3339-validator
45
45
+
takethetime
46
46
+
strict-rfc3339
47
47
+
tomlkit
48
48
+
deprecation
49
49
+
timeslot
50
50
+
];
51
51
+
52
52
+
nativeCheckInputs = [
53
53
+
pytestCheckHook
54
54
+
];
55
55
+
56
56
+
preCheck = ''
57
57
+
# Fake home folder for tests that write to $HOME
58
58
+
export HOME="$TMPDIR"
59
59
+
'';
60
60
+
61
61
+
pythonImportsCheck = [ "aw_core" ];
62
62
+
63
63
+
meta = with lib; {
64
64
+
description = "Core library for ActivityWatch";
65
65
+
homepage = "https://github.com/ActivityWatch/aw-core";
66
66
+
maintainers = with maintainers; [ huantian ];
67
67
+
license = licenses.mpl20;
68
68
+
};
69
69
+
}
+2
pkgs/top-level/python-packages.nix
···
847
847
848
848
avro-python3 = callPackage ../development/python-modules/avro-python3 { };
849
849
850
850
+
aw-core = callPackage ../development/python-modules/aw-core { };
851
851
+
850
852
awacs = callPackage ../development/python-modules/awacs { };
851
853
852
854
awesome-slugify = callPackage ../development/python-modules/awesome-slugify { };