nixpkgs/pkgs/development/python-modules/pyspinel/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

39 lines
788 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyspinel";
version = "unstable-2021-08-19";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "openthread";
repo = pname;
rev = "50d104e29eacd92d229f0b7179ec1067f5851c17";
sha256 = "0s2r00zb909cq3dd28i91qbl0nz8cga3g98z84gq5jqkjpiy8269";
};
propagatedBuildInputs = [
pyserial
];
# Tests are out-dated
doCheck = false;
pythonImportsCheck = [
"spinel"
];
meta = with lib; {
description = "Interface to the OpenThread Network Co-Processor (NCP)";
homepage = "https://github.com/openthread/pyspinel";
license = licenses.asl20;
maintainers = with maintainers; [ gebner ];
};
}