Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 77 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ ansicolors, attrs, autobahn, buildPythonPackage, fetchFromGitHub, jinja2, lib, mock, packaging, pexpect, psutil, pyserial, pytestCheckHook, pytest-dependency, pytest-mock, pyudev, pyusb, pyyaml, requests, setuptools-scm, xmodem}:
buildPythonPackage rec { pname = "labgrid"; version = "0.4.1";
src = fetchFromGitHub { owner = "labgrid-project"; repo = "labgrid"; rev = "v${version}"; sha256 = "0ih04lh1q3dysps4vfmk2rhqqrsimssadsxvbxdsnim2yihrrw47"; };
patches = [ # Pyserial within Nixpkgs already includes the necessary fix, remove the # pyserial version check from labgrid. ./0001-serialdriver-remove-pyserial-version-check.patch ];
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ ansicolors attrs autobahn jinja2 packaging pexpect pyserial pyudev pyusb pyyaml requests xmodem ];
preBuild = '' export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" '';
nativeCheckInputs = [ mock psutil pytestCheckHook pytest-mock pytest-dependency ];
meta = with lib; { description = "Embedded control & testing library"; homepage = "https://labgrid.org"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ emantor ]; platforms = with platforms; linux; };}