depot/third_party/nixpkgs/pkgs/development/python-modules/riden/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

50 lines
918 B
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
modbus-tk,
poetry-core,
pyserial,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "riden";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "geeksville";
repo = "riden";
rev = "refs/tags/${version}";
hash = "sha256-uR1CsVsGn/QC4krHaxl6GqRnTPbFdRaqyMEl2RVMHPU=";
};
build-system = [
poetry-core
setuptools
];
dependencies = [
click
modbus-tk
pyserial
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "riden" ];
meta = with lib; {
description = "Module for Riden RD power supplies";
homepage = "https://github.com/geeksville/riden";
changelog = "https://github.com/geeksville/Riden/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}