nixpkgs-suyu/pkgs/development/python-modules/aqualogic/default.nix

41 lines
977 B
Nix
Raw Normal View History

2021-02-14 09:34:20 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
2021-04-03 22:20:47 +02:00
, fetchpatch
2021-02-14 09:34:20 +01:00
, pyserial
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aqualogic";
2021-04-03 22:20:47 +02:00
version = "2.6";
2021-02-14 09:34:20 +01:00
src = fetchFromGitHub {
owner = "swilson";
repo = pname;
rev = version;
2021-04-03 22:20:47 +02:00
sha256 = "sha256-dAC/0OjvrC8J/5pu5vcOKV/WqgkAlz0LuFl0up6FQRM=";
2021-02-14 09:34:20 +01:00
};
2021-04-03 22:20:47 +02:00
patches = [
(fetchpatch {
name = "allow-iobase-objects.patch";
url = "https://github.com/swilson/aqualogic/commit/185fe25a86c82c497a55c78914b55ed39f5ca339.patch";
sha256 = "072jrrsqv86bn3skibjc57111jlpm8pq2503997fl3h4v6ziwdxg";
})
];
2021-02-14 09:34:20 +01:00
propagatedBuildInputs = [ pyserial ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "aqualogic" ];
meta = with lib; {
description = "Python library to interface with Hayward/Goldline AquaLogic/ProLogic pool controllers";
homepage = "https://github.com/swilson/aqualogic";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}