1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 flit-core,
6 pyspark,
7 pytest-cov-stub,
8 pytest-mock,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "skyboxremote";
15 version = "0.0.6";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-GgRUMGnU91UQm9LNctYhHfRmfFujfc8fXc9KSwLrNBM=";
23 };
24
25 build-system = [ flit-core ];
26
27 optional-dependencies = {
28 spark = [
29 pyspark
30 ];
31 };
32
33 nativeCheckInputs = [
34 pytest-cov-stub
35 pytest-mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "skyboxremote" ];
40
41 meta = {
42 description = "Module for controlling a sky box";
43 homepage = "https://pypi.org/project/skyboxremote/";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}