mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
35 lines
722 B
Nix
35 lines
722 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyblackbird";
|
|
version = "0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koolsb";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0m1yd1cb3z8011x7nicxpf091bdcwghcphn0l21c65f71rabzg6s";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyserial
|
|
pyserial-asyncio
|
|
];
|
|
|
|
# Test setup try to create a serial port
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pyblackbird" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation for Monoprice Blackbird units";
|
|
homepage = "https://github.com/koolsb/pyblackbird";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|