depot/third_party/nixpkgs/pkgs/development/python-modules/pysiaalarm/default.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

54 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, dataclasses-json
, pycryptodome
, setuptools
, pytest-asyncio
, pytest-cases
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pysiaalarm";
version = "3.0.2";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-hS0OaafYjRdPVSCOHfb2zKp0tEOl1LyMJpwnpvsvALs=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "==" ">="
substituteInPlace pytest.ini \
--replace "--cov pysiaalarm --cov-report term-missing" ""
'';
propagatedBuildInputs = [
dataclasses-json
pycryptodome
setuptools
];
checkInputs = [
pytest-asyncio
pytest-cases
pytestCheckHook
];
pythonImportsCheck = [
"pysiaalarm"
"pysiaalarm.aio"
];
meta = with lib; {
description = "Python package for creating a client that talks with SIA-based alarm systems";
homepage = "https://github.com/eavanvalkenburg/pysiaalarm";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}