blob: bb3bd2ee8f10a9e895a0e46bef1e69df5b19a9fc (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyusb,
}:
buildPythonPackage rec {
pname = "pygreat";
version = "2024.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "libgreat";
tag = "v${version}";
hash = "sha256-2PFeCG7m8qiK3eBX2838P6ZsLoQxcJBG+/TppUMT6dE=";
};
sourceRoot = "${src.name}/host";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
pythonRemoveDeps = [ "backports.functools_lru_cache" ];
build-system = [ setuptools ];
dependencies = [ pyusb ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "pygreat" ];
meta = {
description = "Python library for talking with libGreat devices";
homepage = "https://github.com/greatscottgadgets/libgreat/";
changelog = "https://github.com/greatscottgadgets/libgreat/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ carlossless ];
};
}
|