Files
nixpkgs/pkgs/development/python-modules/cynthion/default.nix
T
Martin Weinelt 5a90f86f2d python3Packages.cynthion: 0.2.2 -> 0.2.3
https://github.com/greatscottgadgets/cynthion/releases/tag/0.2.3

This commit was automatically generated using update-python-libraries.
2025-08-09 18:58:58 +02:00

83 lines
1.5 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
# build-system
setuptools,
# dependencies
amaranth,
apollo-fpga,
libusb1,
luna-soc,
luna-usb,
prompt-toolkit,
pyfwup,
pygreat,
pyserial,
pyusb,
tabulate,
tomli,
tqdm,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "cynthion";
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "cynthion";
tag = version;
hash = "sha256-NAsELeOnWgMa6iWCJ0+hpbHIO3BsZBv0N/nK1XP+IpU=";
};
sourceRoot = "${src.name}/cynthion/python";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
setuptools
];
pythonRemoveDeps = [ "future" ];
dependencies = [
amaranth
apollo-fpga
libusb1
luna-soc
luna-usb
prompt-toolkit
pyfwup
pygreat
pyserial
pyusb
tabulate
tomli
tqdm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "cynthion" ];
meta = {
description = "Python package and utilities for the Great Scott Gadgets Cynthion USB Test Instrument";
homepage = "https://github.com/greatscottgadgets/cynthion";
changelog = "https://github.com/greatscottgadgets/cynthion/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ carlossless ];
};
}