Files
nixpkgs/pkgs/development/python-modules/crownstone-core/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
828 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyaes,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "crownstone-core";
version = "3.2.1";
format = "setuptools";
disabled = pythonOlder "3.8";
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 ];
};
}