nixpkgs/pkgs/development/python-modules/pyuavcan/default.nix
Martin Weinelt a91f674254 python310Packages.pyuavcan: Use sri hashes and hash
With the python package set moving to hash, overriding the fetcher and
reintroducing sha256 breaks eval, due to multiple hashes passed.
2023-03-03 23:59:30 +01:00

51 lines
1.3 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, nunavut
, pyserial , pytest, ruamel-yaml}:
buildPythonPackage rec {
pname = "pyuavcan";
version = "1.1.0.dev1";
disabled = pythonOlder "3.7"; # only python>=3.7 is supported
src = fetchFromGitHub {
owner = "UAVCAN";
repo = pname;
rev = version;
hash = "sha256-ChNoYHuZulPLrxYvxeVO9Tyt8rymlk3p/OkYaG2rqzo=";
};
propagatedBuildInputs = [
numpy
nunavut
pyserial
pytest
ruamel-yaml
];
# allow for writable directory for darwin
preBuild = ''
export HOME=$TMPDIR
export PYTHONASYNCIODEBUG=1
'';
# tests fail ATM.
doCheck = false;
# check at least that import works, as tests fail
pythonImportsCheck = [
"pyuavcan"
];
meta = with lib; {
description = "A full-featured implementation of the UAVCAN protocol stack";
longDescription = ''
It is intended for non-embedded, user-facing applications such as GUI
software, diagnostic tools, automation scripts, prototypes, and various
R&D cases. PyUAVCAN consists of a Python library (package) and a simple
CLI tool for basic diagnostics and shell script automation.
'';
homepage = "https://pyuavcan.readthedocs.io";
maintainers = with maintainers; [ wucke13 ];
license = licenses.mit;
};
}