nixpkgs/pkgs/development/python-modules/crownstone-core/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

42 lines
840 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 = with lib; {
description = "Python module with shared classes, util functions and definition of Crownstone";
homepage = "https://github.com/crownstone/crownstone-lib-python-core";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}