depot/third_party/nixpkgs/pkgs/development/python-modules/pysiaalarm/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, dataclasses-json
, pycryptodome
, setuptools-scm
, 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" ""
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
dataclasses-json
pycryptodome
];
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 ];
};
}