nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 dataclasses-json, 6 pycryptodome, 7 setuptools-scm, 8 pytest-asyncio, 9 pytest-cases, 10 pytest-cov-stub, 11 pytestCheckHook, 12 pytz, 13}: 14 15buildPythonPackage (finalAttrs: { 16 pname = "pysiaalarm"; 17 version = "3.2.2"; 18 pyproject = true; 19 20 src = fetchPypi { 21 inherit (finalAttrs) pname version; 22 hash = "sha256-9icZnEpSaezVj9EH5s1u2mB2h9jP/oZcpkVE0WFM4W8="; 23 }; 24 25 build-system = [ setuptools-scm ]; 26 27 dependencies = [ 28 dataclasses-json 29 pycryptodome 30 pytz 31 ]; 32 33 nativeCheckInputs = [ 34 pytest-asyncio 35 pytest-cases 36 pytest-cov-stub 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "pysiaalarm" 42 "pysiaalarm.aio" 43 ]; 44 45 meta = { 46 description = "Python package for creating a client that talks with SIA-based alarm systems"; 47 homepage = "https://github.com/eavanvalkenburg/pysiaalarm"; 48 changelog = "https://github.com/eavanvalkenburg/pysiaalarm/releases/tag/v${finalAttrs.version}"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ dotlambda ]; 51 }; 52})