nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 crownstone-core,
4 buildPythonPackage,
5 pyserial,
6 fetchFromGitHub,
7}:
8
9buildPythonPackage rec {
10 pname = "crownstone-uart";
11 version = "2.7.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "crownstone";
16 repo = "crownstone-lib-python-uart";
17 rev = version;
18 hash = "sha256-Sc6BCIRbf1+GraTScmV4EAgwtSE/JXNe0f2XhKyACIY=";
19 };
20
21 propagatedBuildInputs = [
22 crownstone-core
23 pyserial
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "crownstone_uart" ];
30
31 meta = {
32 description = "Python module for communicating with Crownstone USB dongles";
33 homepage = "https://github.com/crownstone/crownstone-lib-python-uart";
34 license = with lib.licenses; [ mit ];
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}