nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 57 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, dataclasses-json 6, pycryptodome 7, setuptools-scm 8, pytest-asyncio 9, pytest-cases 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "pysiaalarm"; 15 version = "3.0.2"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "sha256-hS0OaafYjRdPVSCOHfb2zKp0tEOl1LyMJpwnpvsvALs="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.cfg \ 26 --replace "==" ">=" 27 substituteInPlace pytest.ini \ 28 --replace "--cov pysiaalarm --cov-report term-missing" "" 29 ''; 30 31 nativeBuildInputs = [ 32 setuptools-scm 33 ]; 34 35 propagatedBuildInputs = [ 36 dataclasses-json 37 pycryptodome 38 ]; 39 40 checkInputs = [ 41 pytest-asyncio 42 pytest-cases 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ 47 "pysiaalarm" 48 "pysiaalarm.aio" 49 ]; 50 51 meta = with lib; { 52 description = "Python package for creating a client that talks with SIA-based alarm systems"; 53 homepage = "https://github.com/eavanvalkenburg/pysiaalarm"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ dotlambda ]; 56 }; 57}