mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
d959477134
The latest release fixes the disabled tests.
76 lines
1.3 KiB
Nix
76 lines
1.3 KiB
Nix
{ ansicolors
|
|
, attrs
|
|
, autobahn
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, jinja2
|
|
, lib
|
|
, mock
|
|
, pexpect
|
|
, psutil
|
|
, pyserial
|
|
, pytestCheckHook
|
|
, pytest-dependency
|
|
, pytest-mock
|
|
, pyudev
|
|
, pyusb
|
|
, pyyaml
|
|
, requests
|
|
, setuptools-scm
|
|
, xmodem
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "labgrid";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "labgrid-project";
|
|
repo = "labgrid";
|
|
rev = "v${version}";
|
|
sha256 = "17j013dw66h4jm1hl92g892sx9r9c48pnl7d58p1y0l4jfca8gmn";
|
|
};
|
|
|
|
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
|
|
pexpect
|
|
pyserial
|
|
pyudev
|
|
pyusb
|
|
pyyaml
|
|
requests
|
|
xmodem
|
|
];
|
|
|
|
preBuild = ''
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
|
'';
|
|
|
|
checkInputs = [
|
|
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;
|
|
};
|
|
}
|