evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pyblackbird / default.nix
blob9219d9ede21a62d61236bc860203faa789292479
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pyserial,
6   pyserial-asyncio,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "pyblackbird";
12   version = "0.6";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "koolsb";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-+ehzrr+RrwFKOOuxBq3+mwnuMPxZFV4QTZG1IRgsbLc=";
22   };
24   propagatedBuildInputs = [
25     pyserial
26     pyserial-asyncio
27   ];
29   # Test setup try to create a serial port
30   doCheck = false;
32   pythonImportsCheck = [ "pyblackbird" ];
34   meta = with lib; {
35     description = "Python implementation for Monoprice Blackbird units";
36     homepage = "https://github.com/koolsb/pyblackbird";
37     changelog = "https://github.com/koolsb/pyblackbird/releases/tag/${version}";
38     license = with licenses; [ mit ];
39     maintainers = with maintainers; [ fab ];
40   };