-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.cynthion: init at 0.1.7
- Loading branch information
1 parent
4468377
commit dbdf14d
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
lib, | ||
fetchFromGitHub, | ||
buildPythonPackage, | ||
pythonOlder, | ||
|
||
# build-system | ||
setuptools, | ||
|
||
# dependencies | ||
amaranth, | ||
apollo-fpga, | ||
future, | ||
libusb1, | ||
luna-soc, | ||
luna-usb, | ||
prompt-toolkit, | ||
pyfwup, | ||
pygreat, | ||
pyserial, | ||
pyusb, | ||
tabulate, | ||
tomli, | ||
tqdm, | ||
|
||
# tests | ||
pytestCheckHook, | ||
}: | ||
buildPythonPackage rec { | ||
pname = "cynthion"; | ||
version = "0.1.7"; | ||
pyproject = true; | ||
disabled = pythonOlder "3.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "greatscottgadgets"; | ||
repo = "cynthion"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-2nVfODAg4t5hoSKUEP4IN23R+JGe3lw/rpfjW/UIsYw="; | ||
}; | ||
|
||
sourceRoot = "${src.name}/cynthion/python"; | ||
|
||
postPatch = '' | ||
substituteInPlace pyproject.toml \ | ||
--replace-fail '"setuptools-git-versioning<2"' "" \ | ||
--replace-fail 'dynamic = ["version"]' 'version = "${version}"' | ||
''; | ||
|
||
build-system = [ | ||
setuptools | ||
]; | ||
|
||
dependencies = [ | ||
amaranth | ||
apollo-fpga | ||
future | ||
libusb1 | ||
luna-soc | ||
luna-usb | ||
prompt-toolkit | ||
pyfwup | ||
pygreat | ||
pyserial | ||
pyusb | ||
tabulate | ||
tomli | ||
tqdm | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
pytestCheckHook | ||
]; | ||
|
||
pythonImportsCheck = [ "cynthion" ]; | ||
|
||
meta = { | ||
changelog = "https://github.com/greatscottgadgets/cynthion/releases/tag/${version}"; | ||
description = "Python package and utilities for the Great Scott Gadgets Cynthion USB Test Instrument"; | ||
homepage = "https://github.com/greatscottgadgets/cynthion"; | ||
license = lib.licenses.bsd3; | ||
maintainers = with lib.maintainers; [ carlossless ]; | ||
platforms = lib.platforms.linux ++ lib.platforms.darwin; | ||
broken = lib.versionAtLeast amaranth.version "0.5"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters