depot/third_party/nixpkgs/pkgs/development/python-modules/aiolip/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

39 lines
827 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiolip";
version = "1.1.6";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiolip";
rev = version;
sha256 = "1bgmcl8q1p6f2xm3w2qylvla6vf6bd1p2hfwj4l8w6w0w04vr02g";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.py --replace-fail "'pytest-runner'," ""
'';
pythonImportsCheck = [ "aiolip" ];
meta = with lib; {
description = "Python module for the Lutron Integration Protocol";
homepage = "https://github.com/bdraco/aiolip";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}