depot/third_party/nixpkgs/pkgs/development/python-modules/labgrid/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

79 lines
1.2 KiB
Nix

{ ansicolors
, attrs
, autobahn
, buildPythonPackage
, fetchFromGitHub
, jinja2
, lib
, mock
, packaging
, pexpect
, psutil
, pyserial
, pytestCheckHook
, pytest-dependency
, pytest-mock
, pyudev
, pyusb
, pyyaml
, requests
, setuptools
, setuptools-scm
, wheel
, xmodem
}:
buildPythonPackage rec {
pname = "labgrid";
version = "23.0.3";
src = fetchFromGitHub {
owner = "labgrid-project";
repo = "labgrid";
rev = "refs/tags/v${version}";
sha256 = "sha256-yhlBqqCLOt6liw4iv8itG6E4QfIa7cW76QJqefUM5dw=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
pyproject = true;
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;
};
}