Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 82 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ 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.2"; pyproject = true;
src = fetchFromGitHub { owner = "greatscottgadgets"; repo = "cynthion"; tag = version; hash = "sha256-xL1/ckX+xKUQpugQkLB3SlZeNcBEaTMascTgoQ4C+hA="; };
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 ]; };}