17 buildPythonPackage rec {
23 # pypi distribution doesn't include tests, so build from source instead
24 src = fetchFromGitHub {
25 owner = "ActivityWatch";
28 sha256 = "sha256-HTyhQz/RaNdCtJIV6YHEd6Yhu9VRJ8E9XdN7NcoO8ao=";
31 disabled = pythonOlder "3.8";
33 nativeBuildInputs = [ poetry-core ];
35 propagatedBuildInputs = [
44 nativeCheckInputs = [ pytestCheckHook ];
46 # Only run this test, the others are integration tests that require
47 # an instance of aw-server running in order to function.
48 pytestFlagsArray = [ "tests/test_requestqueue.py" ];
51 # Fake home folder for tests that write to $HOME
55 pythonImportsCheck = [ "aw_client" ];
57 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
60 description = "Client library for ActivityWatch";
61 mainProgram = "aw-client";
62 homepage = "https://github.com/ActivityWatch/aw-client";
63 maintainers = with maintainers; [ huantian ];
64 license = licenses.mpl20;