nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 faker,
6 fetchFromGitHub,
7 pytest-aiohttp,
8 pytest-mock,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "aiolookin";
14 version = "1.0.0";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "ANMalko";
19 repo = "aiolookin";
20 tag = "v${version}";
21 hash = "sha256-G3/lUgV60CMLskUo83TlvLLIfJtu5DEz+94mdVI4OrI=";
22 };
23
24 propagatedBuildInputs = [ aiohttp ];
25
26 doCheck = false; # all tests are async and no async plugin is configured
27
28 nativeCheckInputs = [
29 faker
30 pytest-aiohttp
31 pytest-mock
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "aiolookin" ];
36
37 meta = {
38 description = "Python client for interacting with LOOKin devices";
39 homepage = "https://github.com/ANMalko/aiolookin";
40 changelog = "https://github.com/ANMalko/aiolookin/blob/v${version}/CHANGELOG.md";
41 license = with lib.licenses; [ mit ];
42 maintainers = with lib.maintainers; [ fab ];
43 };
44}