nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyaes,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "crownstone-core";
11 version = "3.2.1";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "crownstone";
16 repo = "crownstone-lib-python-core";
17 rev = version;
18 hash = "sha256-zrlCzx7N3aUcTUNa64jSzDdWgQneX+Hc5n8TTTcZ4ck=";
19 };
20
21 propagatedBuildInputs = [ pyaes ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "crownstone_core" ];
26
27 meta = {
28 description = "Python module with shared classes, util functions and definition of Crownstone";
29 homepage = "https://github.com/crownstone/crownstone-lib-python-core";
30 license = with lib.licenses; [ mit ];
31 maintainers = with lib.maintainers; [ fab ];
32 };
33}