summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/crownstone-core/default.nix
blob: d08d12decbc51dfb7fd58448d0fb08d40f2f5f43 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pyaes,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "crownstone-core";
  version = "3.2.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "crownstone";
    repo = "crownstone-lib-python-core";
    rev = version;
    hash = "sha256-zrlCzx7N3aUcTUNa64jSzDdWgQneX+Hc5n8TTTcZ4ck=";
  };

  propagatedBuildInputs = [ pyaes ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "crownstone_core" ];

  meta = {
    description = "Python module with shared classes, util functions and definition of Crownstone";
    homepage = "https://github.com/crownstone/crownstone-lib-python-core";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}